mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Adds sample app that mimics the beloved starter app, but with ScopedModel for state management. Contains a smoke test and is set up to run it in travis_script.sh.
30 lines
627 B
Bash
30 lines
627 B
Bash
set -e
|
|
|
|
declare -a PROJECT_NAMES=(
|
|
"jsonexample" \
|
|
"shrine" \
|
|
"scoped_model_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 --"
|