1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/travis_script.sh
Filip Hracek 31edec5378 Move scoped_model_counter to provider_counter (#82)
I used `flutter create` anew, so the project structure now has additional 2 `AndroidManifest.xml` files. Everything else stayed the same, so from git’s perspective, it’s just moved files.
2019-05-20 15:59:51 -07:00

30 lines
623 B
Bash
Executable File

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 --"