forked from google/mono_repo.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
115 lines (111 loc) · 3.98 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Created with package:mono_repo v4.0.0-dev
language: dart
jobs:
include:
- stage: smoke_test
name: "Dart dev; PKGS: mono_repo, test_pkg; `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos .`"
dart: dev
os: linux
env: PKGS="mono_repo test_pkg"
script: tool/ci.sh dartfmt dartanalyzer_0
- stage: smoke_test
name: "Dart dev; PKG: mono_repo; `cd ../ && dart mono_repo/bin/mono_repo.dart generate --validate`"
dart: dev
os: linux
env: PKGS="mono_repo"
script: tool/ci.sh command
- stage: smoke_test
name: "Dart 2.12.0; PKG: mono_repo; `dartanalyzer .`"
dart: "2.12.0"
os: linux
env: PKGS="mono_repo"
script: tool/ci.sh dartanalyzer_1
- stage: smoke_test
name: "Dart 2.10.4; PKG: test_pkg; `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos .`"
dart: "2.10.4"
os: linux
env: PKGS="test_pkg"
script: tool/ci.sh dartfmt dartanalyzer_0
- stage: smoke_test
name: "Dart 2.12.0-0.0.dev; PKG: test_pkg; `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos .`"
dart: "2.12.0-0.0.dev"
os: linux
env: PKGS="test_pkg"
script: tool/ci.sh dartfmt dartanalyzer_0
- stage: smoke_test
name: "Dart 2.12.0-29.10.beta; PKG: test_pkg; `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos .`"
dart: "2.12.0-29.10.beta"
os: linux
env: PKGS="test_pkg"
script: tool/ci.sh dartfmt dartanalyzer_0
- stage: smoke_test
name: "Dart main; PKG: test_pkg; `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos .`"
dart: be/raw/latest
os: linux
env: PKGS="test_pkg"
script: tool/ci.sh dartfmt dartanalyzer_0
- stage: smoke_test
name: "Dart beta; PKG: test_pkg; `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos .`"
dart: beta
os: linux
env: PKGS="test_pkg"
script: tool/ci.sh dartfmt dartanalyzer_0
- stage: smoke_test
name: "Dart stable; PKG: test_pkg; `dartfmt -n --set-exit-if-changed .`, `dartanalyzer --fatal-infos .`"
dart: stable
os: linux
env: PKGS="test_pkg"
script: tool/ci.sh dartfmt dartanalyzer_0
- stage: unit_test
name: "Dart 2.12.0; PKG: mono_repo; `pub run test -x yaml -P presubmit --test-randomize-ordering-seed=random`"
dart: "2.12.0"
os: linux
env: PKGS="mono_repo"
script: tool/ci.sh test_0
- stage: unit_test
name: "Dart 2.12.0; PKG: mono_repo; `pub run test -x yaml -P presubmit --test-randomize-ordering-seed=random`"
dart: "2.12.0"
os: windows
env: PKGS="mono_repo"
script: tool/ci.sh test_0
- stage: unit_test
name: "Dart dev; PKG: mono_repo; `pub run test -x yaml -P presubmit --test-randomize-ordering-seed=random`"
dart: dev
os: linux
env: PKGS="mono_repo"
script: tool/ci.sh test_0
- stage: unit_test
name: "Dart dev; PKG: mono_repo; `pub run test -x yaml -P presubmit --test-randomize-ordering-seed=random`"
dart: dev
os: windows
env: PKGS="mono_repo"
script: tool/ci.sh test_0
- stage: unit_test
name: "Dart 2.12.0; PKG: mono_repo; `pub run test -t yaml --test-randomize-ordering-seed=random`"
dart: "2.12.0"
os: linux
env: PKGS="mono_repo"
script: tool/ci.sh test_1
- stage: unit_test
name: "Dart dev; PKG: mono_repo; `pub run test -t yaml --test-randomize-ordering-seed=random`"
dart: dev
os: linux
env: PKGS="mono_repo"
script: tool/ci.sh test_1
- stage: unit_test
name: "Dart dev; PKG: test_pkg; `pub run test --test-randomize-ordering-seed=random`"
dart: dev
os: linux
env: PKGS="test_pkg"
script: tool/ci.sh test_2
stages:
- smoke_test
- unit_test
# Only building master means that we don't run two builds for each pull request.
branches:
only:
- master
cache:
directories:
- $HOME/.pub-cache
- mono_repo/.dart_tool/build