forked from dart-lang/test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (31 loc) · 1.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: dart
sudo: required
dart:
- dev
env: FORCE_TEST_EXIT=true
addons:
chrome: stable
before_script: cd pkgs/test
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