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 2128608386 Add the ScopedModel Counter sample (#41)
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.
2019-01-02 11:25:52 -08:00

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