run tests only once
diff --git a/tool/travis.sh b/tool/travis.sh
index fe34aaa..e0881ad 100755
--- a/tool/travis.sh
+++ b/tool/travis.sh
@@ -46,16 +46,17 @@
dart -c ../bin/dartdoc.dart
cd ..
- # Run the tests.
- grind test
-
# Gather and send coverage data.
- if [ "$REPO_TOKEN" ]; then
+ if [ "$REPO_TOKEN" ]
+ then
pub global activate dart_coveralls
pub global run dart_coveralls report \
--token $REPO_TOKEN \
--retry 2 \
--exclude-test-files \
test/all.dart
+ else
+ # Only run the tests.
+ grind test
fi
fi