mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
737 B
33 lines
737 B
set -e
|
|
|
|
declare -a PROJECT_NAMES=(
|
|
"flutter_maps_firestore" \
|
|
"isolate_example" \
|
|
"jsonexample" \
|
|
"place_tracker" \
|
|
"platform_design"
|
|
"platform_view_swift" \
|
|
"provider_counter" \
|
|
"shrine" \
|
|
"veggieseasons" \
|
|
)
|
|
|
|
for PROJECT_NAME in "${PROJECT_NAMES[@]}"
|
|
do
|
|
echo "== Testing '${PROJECT_NAME}' on Flutter's $FLUTTER_VERSION channel =="
|
|
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.
|
|
../flutter/bin/flutter format -n --set-exit-if-changed .
|
|
|
|
# Run the actual tests.
|
|
../flutter/bin/flutter test
|
|
|
|
popd
|
|
done
|
|
|
|
echo "-- Success --"
|