forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
182 lines (161 loc) · 4.93 KB
/
config.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
version: 2
aliases:
- &docker-node-latest
- image: circleci/node:latest
- &docker-node-lts
- image: circleci/node:lts
- &docker-node-8
- image: circleci/node:8
- &restore-node-modules-cache
name: Restore node_modules cache
key: v1-yarn-deps-{{ checksum "yarn.lock" }}
- &restore-yarn-cache
name: Restore yarnpkg cache
key: v1-yarn-cache
- &save-node-modules-cache
name: Save node_modules cache
paths:
- node_modules
key: v1-yarn-deps-{{ checksum "yarn.lock" }}
- &save-yarn-cache
name: Save yarnpkg cache
paths:
- ~/.cache/yarn
key: v1-yarn-cache
jobs:
checkout-code:
docker: *docker-node-lts
steps:
- checkout
- restore_cache: *restore-yarn-cache
- restore_cache: *restore-node-modules-cache
- run: yarn install --non-interactive --cache-folder ~/.cache/yarn
- run:
name: Check if yarn.lock changed during install
command: git diff --exit-code
- save_cache: *save-node-modules-cache
- save_cache: *save-yarn-cache
clean-lockfile:
docker: *docker-node-lts
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- run: ./scripts/verifyCleanLockfile.sh
build:
docker: *docker-node-lts
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn compile
- persist_to_workspace:
root: "."
paths: [lib, build]
lint:
docker: *docker-node-lts
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn lint
test:
docker: *docker-node-8
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn test
test2.1:
docker: *docker-node-8
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn add [email protected]
- run: yarn test
test2.4:
docker: *docker-node-8
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn add [email protected]
- run: yarn test
test2.8:
docker: *docker-node-8
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn add [email protected]
- run: yarn test
test3.1:
docker: *docker-node-8
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn add [email protected]
- run: yarn test
test3.4:
docker: *docker-node-8
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn add [email protected]
- run: yarn test
test3.8:
docker: *docker-node-8
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn add [email protected]
- run: yarn test
- run: yarn test
testRc:
docker: *docker-node-lts
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn add typescript@rc
- run: yarn test
testNext:
docker: *docker-node-latest
steps:
- checkout
- restore_cache: *restore-node-modules-cache
- attach_workspace: { at: '.' }
- run: yarn add typescript@next
- run: yarn test
workflows:
version: 2
build_lint_test:
jobs:
- checkout-code
- clean-lockfile:
requires: [checkout-code]
- build:
requires: [checkout-code]
- lint:
requires: [build]
- test:
requires: [build]
- test2.1:
requires: [build]
- test2.4:
requires: [build]
- test2.8:
requires: [build]
- test3.1:
requires: [build]
- test3.4:
requires: [build]
- test3.8:
requires: [build]
- testRc:
requires: [build]
- testNext:
requires: [build]