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.
30 lines
623 B
30 lines
623 B
set -e
|
|
|
|
declare -a PROJECT_NAMES=(
|
|
"jsonexample" \
|
|
"shrine" \
|
|
"provider_counter" \
|
|
"veggieseasons" \
|
|
"place_tracker" \
|
|
"platform_view_swift" \
|
|
)
|
|
|
|
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.
|
|
find . | grep "\.dart$" | xargs ../flutter/bin/flutter format -n
|
|
|
|
# Run the actual tests.
|
|
../flutter/bin/flutter test
|
|
|
|
popd
|
|
done
|
|
|
|
echo "-- Success --"
|