| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 set -e # bail on error |
| 2 | 3 |
| 3 # Fast fail the script on failures. | 4 # Prerequisite: ./tool/build_sdk.sh has been run. |
| 4 set -e | |
| 5 | |
| 6 # Build first | |
| 7 ./tool/build_sdk.sh | |
| 8 | |
| 9 dart --checked test/all_tests.dart | |
| 10 | 5 |
| 11 # Install dart_coveralls; gather and send coverage data. | 6 # Install dart_coveralls; gather and send coverage data. |
| 12 if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then | 7 if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then |
| 13 pub global run dart_coveralls report \ | 8 pub global run dart_coveralls report \ |
| 14 --token $COVERALLS_TOKEN \ | 9 --token $COVERALLS_TOKEN \ |
| 15 --retry 2 \ | 10 --retry 2 \ |
| 16 --exclude-test-files \ | 11 --exclude-test-files \ |
| 17 test/all_tests.dart | 12 test/all_tests.dart |
| 18 fi | 13 fi |
| OLD | NEW |