Files
sdk/pkg/dev_compiler/tool/travis.sh
T
Kevin Moore 6796ce6884 Adding Travis CI and Coveralls support
only use compact config if we're not doing code coverage

R=sigmund@google.com

Review URL: https://codereview.chromium.org/1014573003
2015-03-17 08:19:56 -07:00

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