OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Fast fail the script on failures. | 3 # Fast fail the script on failures. |
4 set -e | 4 set -e |
5 | 5 |
| 6 # Only check formatting on stable branch |
| 7 if [ "$TRAVIS_DART_VERSION" = "stable" ]; then |
| 8 $(dirname -- "$0")/ensure_dartfmt.sh |
| 9 fi |
| 10 |
6 dartanalyzer lib/box2d.dart | 11 dartanalyzer lib/box2d.dart |
7 | 12 |
8 # Run the benchmark script as a simple sanity check | 13 # Run the benchmark script as a simple sanity check |
9 dart --checked --error_on_bad_type --error_on_bad_override benchmark/bench2d.dar
t | 14 dart --checked --error_on_bad_type --error_on_bad_override benchmark/bench2d.dar
t |
10 | 15 |
11 # Install dart_coveralls; gather and send coverage data. | 16 # Install dart_coveralls; gather and send coverage data. |
12 if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then | 17 if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then |
13 pub global activate dart_coveralls | 18 pub global activate dart_coveralls |
14 pub global run dart_coveralls report \ | 19 pub global run dart_coveralls report \ |
15 --token $COVERALLS_TOKEN \ | 20 --token $COVERALLS_TOKEN \ |
16 --retry 2 \ | 21 --retry 2 \ |
17 --exclude-test-files \ | 22 --exclude-test-files \ |
18 benchmark/bench2d.dart | 23 benchmark/bench2d.dart |
19 fi | 24 fi |
OLD | NEW |