Add coveralls support to Travis (#4690)

This patch causes us to upload a coverage report to coveralls.io.
This commit is contained in:
Adam Barth
2016-06-22 14:47:41 -07:00
committed by GitHub
parent 0f2c3dc07f
commit ed2c24ba2b
4 changed files with 14 additions and 6 deletions

View File

@@ -23,8 +23,13 @@ flutter analyze --flutter-repo
(cd dev/automated_tests; ! flutter test test_smoke_test/fail_test.dart > /dev/null)
(cd dev/automated_tests; flutter test test_smoke_test/pass_test.dart > /dev/null)
COVERAGE_FLAG=
if [ -n $TRAVIS ]; then
COVERAGE_FLAG=--coverage
fi
# run tests
(cd packages/flutter; flutter test)
(cd packages/flutter; flutter test $COVERAGE_FLAG)
(cd packages/flutter_driver; dart -c test/all.dart)
(cd packages/flutter_sprites; flutter test)
(cd packages/flutter_test; flutter test)