flutter/.travis.yml
Jason Simmons 7df854ad47 Disable the coverage shard in Travis (#11512)
In a Travis environment, the test package is exiting the process after
completing the tests.
See dart-lang/test@d1057c4

The flutter test command calls the test package's main() and then expects to
do other work afterward.  The exit prevents flutter test from writing the
new coverage results, causing the coveralls tool to run against an old
lcov.info file.
2017-08-03 18:05:49 -07:00

36 lines
1001 B
YAML

os:
- linux
- osx
sudo: false
filter_secrets: false
addons:
apt:
# sky_shell binary depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
sources:
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
packages:
- libstdc++6
- fonts-droid
language: node_js
node_js:
- "6"
install:
- ./dev/bots/travis_install.sh
env:
- SHARD=analyze
- SHARD=tests
# Temporarily disable the coverage shard. The test package is exiting
# the process after tests run, preventing the flutter test command from
# writing coverage results.
# TODO(jsimmons): reenable coverage when a new test package is available.
# - SHARD=coverage
- SHARD=docs
before_script:
- ./dev/bots/travis_setup.sh
script:
- ulimit -S -n 2048 # https://github.com/flutter/flutter/issues/2976
- (./bin/cache/dart-sdk/bin/dart ./dev/bots/test.dart && ./dev/bots/travis_upload.sh)
cache:
directories:
- $HOME/.pub-cache