Skip to content

Commit 6cef892

Browse files
committed
Merge pull request #1059 from keertip/tests
run tests only once
2 parents 20d4eac + 8529eda commit 6cef892

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tool/travis.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,17 @@ else
4646
dart -c ../bin/dartdoc.dart
4747
cd ..
4848

49-
# Run the tests.
50-
grind test
51-
5249
# Gather and send coverage data.
53-
if [ "$REPO_TOKEN" ]; then
50+
if [ "$REPO_TOKEN" ]
51+
then
5452
pub global activate dart_coveralls
5553
pub global run dart_coveralls report \
5654
--token $REPO_TOKEN \
5755
--retry 2 \
5856
--exclude-test-files \
5957
test/all.dart
58+
else
59+
# Only run the tests.
60+
grind test
6061
fi
6162
fi

0 commit comments

Comments
 (0)