OLD | NEW |
(Empty) | |
| 1 #!/bin/bash |
| 2 |
| 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 |
| 5 # BSD-style license that can be found in the LICENSE file. |
| 6 |
| 7 # Fast fail the script on failures. |
| 8 set -e |
| 9 |
| 10 # Verify that the libraries are error free. |
| 11 dartanalyzer --fatal-warnings \ |
| 12 lib/cli_util.dart \ |
| 13 test/cli_util_test.dart |
| 14 |
| 15 # Run the tests. |
| 16 dart test/cli_util_test.dart |
| 17 |
| 18 # Install dart_coveralls; gather and send coverage data. |
| 19 if [ "$COVERALLS_TOKEN" ]; then |
| 20 pub global activate dart_coveralls |
| 21 pub global run dart_coveralls report \ |
| 22 --token $COVERALLS_TOKEN \ |
| 23 --retry 2 \ |
| 24 --exclude-test-files \ |
| 25 test/cli_util_test.dart |
| 26 fi |
OLD | NEW |