Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/bin/bash | |
| 2 | |
| 3 # Fast fail the script on failures. | |
| 4 set -e | |
| 5 | |
| 6 function clean { | |
| 7 # This is a much more simple clean script, assuming git is available | |
| 8 pushd test | |
| 9 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
:-)
| |
| 10 popd | |
| 11 pub install | |
| 12 } | |
| 13 | |
| 14 clean | |
| 15 | |
| 16 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
| |
| 17 | |
| 18 # Install dart_coveralls; gather and send coverage data. | |
| 19 if [ "$COVERALLS_TOKEN" ]; then | |
| 20 clean | |
| 21 | |
| 22 pub global run dart_coveralls report \ | |
| 23 --token $COVERALLS_TOKEN \ | |
| 24 --retry 2 \ | |
| 25 --exclude-test-files \ | |
| 26 test/all_tests.dart | |
| 27 fi | |
| OLD | NEW |