Chromium Code Reviews| 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 |