mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Adds analyzer and formatter to smoke tests. (#29)
This commit is contained in:
@@ -10,7 +10,16 @@ for PROJECT_NAME in "${PROJECT_NAMES[@]}"
|
|||||||
do
|
do
|
||||||
echo "== Testing '${PROJECT_NAME}' on Flutter's $FLUTTER_VERSION channel =="
|
echo "== Testing '${PROJECT_NAME}' on Flutter's $FLUTTER_VERSION channel =="
|
||||||
pushd "${PROJECT_NAME}"
|
pushd "${PROJECT_NAME}"
|
||||||
|
|
||||||
|
# Run the analyzer to find any static analysis issues.
|
||||||
|
../flutter/bin/flutter analyze
|
||||||
|
|
||||||
|
# Run the formatter on all the dart files to make sure everything's linted.
|
||||||
|
find . | grep "\.dart$" | xargs ../flutter/bin/flutter format -n
|
||||||
|
|
||||||
|
# Run the actual tests.
|
||||||
../flutter/bin/flutter test
|
../flutter/bin/flutter test
|
||||||
|
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user