| 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
|
| + popd
|
| + pub install
|
| +}
|
| +
|
| +clean
|
| +
|
| +dart --checked test/all_tests.dart
|
| +
|
| +# 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
|
|
|