diff --git a/pkg/dev_compiler/.travis.yml b/pkg/dev_compiler/.travis.yml index 8e9919b91539..d4986eee640c 100644 --- a/pkg/dev_compiler/.travis.yml +++ b/pkg/dev_compiler/.travis.yml @@ -2,6 +2,7 @@ language: dart sudo: false dart: - dev + - stable before_install: - pub global activate dart_coveralls script: ./tool/travis.sh diff --git a/pkg/dev_compiler/tool/travis.sh b/pkg/dev_compiler/tool/travis.sh index 22a3c84c05a3..0bdfe72e20cb 100755 --- a/pkg/dev_compiler/tool/travis.sh +++ b/pkg/dev_compiler/tool/travis.sh @@ -3,22 +3,10 @@ # Fast fail the script on failures. set -e -function clean { - # This is a much simpler 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 - +if [ "$COVERALLS_TOKEN" ] && [ "$TRAVIS_DART_VERSION" = "stable" ]; then pub global run dart_coveralls report \ --token $COVERALLS_TOKEN \ --retry 2 \