Permalink
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (30 sloc) 1.05 KB
language: dart
sudo: required
dart:
- dev
env: FORCE_TEST_EXIT=true
addons:
chrome: stable
jobs:
include:
- stage: analyze_and_format
script: tool/dartfmt_and_analyze.sh
- stage: unit_test
script: xvfb-run -s "-screen 0 1024x768x24" pub run test --preset travis --total-shards 5 --shard-index 0
- stage: unit_test
script: xvfb-run -s "-screen 0 1024x768x24" pub run test --preset travis --total-shards 5 --shard-index 1
- stage: unit_test
script: xvfb-run -s "-screen 0 1024x768x24" pub run test --preset travis --total-shards 5 --shard-index 2
- stage: unit_test
script: xvfb-run -s "-screen 0 1024x768x24" pub run test --preset travis --total-shards 5 --shard-index 3
- stage: unit_test
script: xvfb-run -s "-screen 0 1024x768x24" pub run test --preset travis --total-shards 5 --shard-index 4
# Only building master means that we don't run two builds for each pull request.
branches:
only: [master, /feature\..*/]
stages:
- analyze_and_format
- unit_test
cache:
directories:
- $HOME/.pub-cache