Skip to content

Commit f713c3b

Browse files
committed
Merge pull request #5 from dart-lang/travis
Travis/coveralls (Fix flutter#4).
2 parents d8e59e6 + 0be6734 commit f713c3b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: dart
2+
script: ./tool/travis.sh
3+
sudo: false

tool/travis.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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

0 commit comments

Comments
 (0)