OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 # Fast fail the script on failures. | 7 # Fast fail the script on failures. |
8 set -e | 8 set -e |
9 | 9 |
10 # Verify that the libraries are error free. | 10 # Verify that the libraries are error free. |
11 dartanalyzer --fatal-warnings \ | 11 dartanalyzer --fatal-warnings \ |
12 lib/cli_util.dart \ | 12 lib/cli_util.dart \ |
13 test/cli_util_test.dart | 13 test/cli_util_test.dart |
14 | 14 |
15 # Run the tests. | 15 # Run the tests. |
16 dart test/cli_util_test.dart | 16 dart test/cli_util_test.dart |
17 | 17 |
18 # Install dart_coveralls; gather and send coverage data. | 18 # Install dart_coveralls; gather and send coverage data. |
19 if [ "$COVERALLS_TOKEN" ]; then | 19 if [ "$COVERALLS_TOKEN" ]; then |
20 pub global activate dart_coveralls | 20 pub global activate dart_coveralls |
21 pub global run dart_coveralls report \ | 21 pub global run dart_coveralls report \ |
22 --token $COVERALLS_TOKEN \ | 22 --token $COVERALLS_TOKEN \ |
23 --retry 2 \ | 23 --retry 2 \ |
24 --exclude-test-files \ | 24 --exclude-test-files \ |
25 test/cli_util_test.dart | 25 test/cli_util_test.dart |
26 fi | 26 fi |
OLD | NEW |