| language: dart |
| |
| dart: |
| - dev |
| |
| os: |
| - linux |
| - osx |
| - windows |
| |
| addons: |
| homebrew: |
| packages: |
| - coreutils |
| |
| env: |
| global: |
| - SPLIT=`which gsplit || which split` |
| - _PUB_TEST_SNAPSHOT="`pwd`/.dart_tool/pub.dart.snapshot.dart2" |
| |
| dart_task: |
| - test: --preset travis `$SPLIT -n l/1/7 .dart_tool/test_files` |
| - test: --preset travis `$SPLIT -n l/2/7 .dart_tool/test_files` |
| - test: --preset travis `$SPLIT -n l/3/7 .dart_tool/test_files` |
| - test: --preset travis `$SPLIT -n l/4/7 .dart_tool/test_files` |
| - test: --preset travis `$SPLIT -n l/5/7 .dart_tool/test_files` |
| - test: --preset travis `$SPLIT -n l/6/7 .dart_tool/test_files` |
| - test: --preset travis `$SPLIT -n l/7/7 .dart_tool/test_files` |
| |
| jobs: |
| include: |
| - dart: dev |
| os: linux |
| dart_task: dartfmt |
| - dart: dev |
| os: linux |
| dart_task: |
| dartanalyzer: --fatal-infos --fatal-warnings . |
| |
| # Create a snapshot to improve startup time. Tests will automatically use this |
| # snapshot if it's available. |
| before_script: |
| - dart --snapshot="$_PUB_TEST_SNAPSHOT" bin/pub.dart |
| - find test -name "*_test\\.dart" | sort > .dart_tool/test_files |
| |
| # Only building these branches means that we don't run two builds for each pull |
| # request. |
| branches: |
| only: [master, travis, /^feature\./] |
| |
| cache: |
| directories: |
| - $HOME/.pub-cache |