File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ language : dart
2+ script : ./tool/travis.sh
3+ sudo : false
Original file line number Diff line number Diff line change 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/when.dart \
13+ test/when_test.dart
14+
15+ # Run the tests.
16+ dart test/when_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/when_test.dart
26+ fi
You can’t perform that action at this time.
0 commit comments