| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2014, 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 # Display installed versions. |
| 11 dart --version |
| 12 |
| 13 # Get our packages. |
| 14 pub get |
| 15 |
| 10 # Verify that the libraries are error free. | 16 # Verify that the libraries are error free. |
| 11 dartanalyzer --fatal-warnings \ | 17 dartanalyzer --fatal-warnings \ |
| 12 example/example.dart \ | |
| 13 example/ga.dart \ | |
| 14 lib/usage.dart \ | 18 lib/usage.dart \ |
| 19 lib/usage_html.dart \ |
| 20 lib/usage_io.dart \ |
| 15 test/all.dart | 21 test/all.dart |
| 16 | 22 |
| 17 # Run the tests. | 23 # Run the tests. |
| 18 dart -c test/all.dart | 24 dart test/all.dart |
| 19 | 25 |
| 20 # Measure the size of the compiled JS, for the dart:html version of the library. | 26 # Measure the size of the compiled JS, for the dart:html version of the library. |
| 21 dart tool/grind.dart build | 27 dart tool/grind.dart build |
| 22 | |
| 23 # Install dart_coveralls; gather and send coverage data. | |
| 24 if [ "$REPO_TOKEN" ]; then | |
| 25 pub global activate dart_coveralls | |
| 26 pub global run dart_coveralls report \ | |
| 27 --token $REPO_TOKEN \ | |
| 28 --retry 2 \ | |
| 29 --exclude-test-files \ | |
| 30 test/all.dart | |
| 31 fi | |
| OLD | NEW |