forked from dart-lang/mockito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (50 loc) · 1.36 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: dart
# Gives more resources on Travis (8GB Ram, 2 CPUs).
# Do not remove without verifying w/ Travis.
sudo: required
addons:
chrome: stable
# Build stages: https://docs.travis-ci.com/user/build-stages/.
stages:
- presubmit
- build
- testing
# 1. Run dartfmt, dartanalyzer, pub run test (VM).
# 2. Then run a build.
# 3. Then run tests compiled via dartdevc and dart2js.
jobs:
include:
- stage: presubmit
script: ./tool/travis.sh dartfmt
dart: dev
- stage: presubmit
script: ./tool/travis.sh dartanalyzer
dart: dev
- stage: presubmit
script: ./tool/travis.sh vm_test
dart: dev
- stage: build
script: ./tool/travis.sh dartdevc_build
dart: dev
- stage: testing
script: ./tool/travis.sh dartdevc_test
dart: dev
- stage: testing
script: ./tool/travis.sh dart2js_test
dart: dev
- stage: testing
script: ./tool/travis.sh coverage
dart: dev
# Only building master means that we don't run two builds for each pull request.
branches:
only: [master]
# Incremental pub cache and builds.
cache:
directories:
- $HOME/.pub-cache
- .dart_tool
# Necessary for Chrome and Firefox to run
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- "t=0; until (xdpyinfo -display :99 &> /dev/null || test $t -gt 10); do sleep 1; let t=$t+1; done"