Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: tool/travis.sh

Issue 1014573003: Adding Travis CI and Coveralls support (Closed) Base URL: https://github.com/dart-lang/dart-dev-compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« pubspec.yaml ('K') | « test/test_util.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/travis.sh
diff --git a/tool/travis.sh b/tool/travis.sh
new file mode 100755
index 0000000000000000000000000000000000000000..2a2ccdfd51792363ac2bf7b7b7b1c3dfb9d149d6
--- /dev/null
+++ b/tool/travis.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+# Fast fail the script on failures.
+set -e
+
+function clean {
+ # This is a much more simple clean script, assuming git is available
+ pushd test
+ git clean -fdx
Siggi Cherem (dart-lang) 2015/03/17 15:03:50 I had not idea this existed, that's pretty cool!
kevmoo 2015/03/17 15:14:39 :-)
+ popd
+ pub install
+}
+
+clean
+
+dart --checked test/all_tests.dart
Siggi Cherem (dart-lang) 2015/03/17 15:03:50 could we call `source test/test.sh` here instead?
kevmoo 2015/03/17 15:14:38 Yes, but let me get this in first. I was having t
Jennifer Messerly 2015/03/17 15:30:12 if it helps, we can move the diff'ing of expected
+
+# Install dart_coveralls; gather and send coverage data.
+if [ "$COVERALLS_TOKEN" ]; then
+ clean
+
+ pub global run dart_coveralls report \
+ --token $COVERALLS_TOKEN \
+ --retry 2 \
+ --exclude-test-files \
+ test/all_tests.dart
+fi
« pubspec.yaml ('K') | « test/test_util.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698