6796ce6884
only use compact config if we're not doing code coverage R=sigmund@google.com Review URL: https://codereview.chromium.org/1014573003
28 lines
482 B
Bash
Executable File
28 lines
482 B
Bash
Executable File
#!/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
|