From 1f5a87b873cad0caf89d27262479c3a774f60895 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Thu, 8 Nov 2018 10:10:32 -0800 Subject: [PATCH] Fixing format command in travis script. --- travis_script.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/travis_script.sh b/travis_script.sh index 382f7d259..74683be28 100644 --- a/travis_script.sh +++ b/travis_script.sh @@ -10,9 +10,16 @@ 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 - ../flutter/bin/flutter format -n + + # 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