OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 3 # Fast fail the script on failures. |
| 4 set -e |
| 5 |
| 6 # Verify that the libraries are error free. |
| 7 dartanalyzer --fatal-warnings \ |
| 8 lib/*.dart \ |
| 9 test/*.dart |
| 10 |
| 11 # Verify that all the tests pass. |
| 12 pub run test |
| 13 |
| 14 # Verify the coverage of the tests. |
| 15 if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then |
| 16 pub global activate dart_coveralls |
| 17 pub global run dart_coveralls report \ |
| 18 --token $COVERALLS_TOKEN \ |
| 19 --retry 2 \ |
| 20 --exclude-test-files \ |
| 21 test/all_tests.dart |
| 22 fi |
OLD | NEW |