@@ -22,121 +22,195 @@ references:
22
22
key : npm-cache
23
23
24
24
install_react : &install_react
25
- run : ./scripts/install-react.sh
25
+ run : REACT=15 ./scripts/install-react.sh
26
+
27
+ react_15 : &react_15
28
+ environment :
29
+ REACT : 15
30
+
31
+ react_16 : &react_16
32
+ environment :
33
+ REACT : 16
26
34
27
35
jobs :
28
36
setup :
29
37
<< : *container_config
30
38
steps :
39
+ - checkout
31
40
- *restore_cache
32
- - run : npm install
33
41
- run : node -v
34
42
- run : npm -v
43
+ - run : npm install
44
+ - run :
45
+ command : |
46
+ set +eo
47
+ npm ls
48
+ true
35
49
- *save_cache
36
50
- persist_to_workspace :
37
51
root : ~/ant-design
38
52
paths :
39
- - ./*
53
+ - node_modules
54
+
55
+ dist :
56
+ << : *container_config
57
+ steps :
58
+ - checkout
59
+ - *attach_workspace
60
+ - run : npm run dist
61
+ - run : node ./tests/dekko/dist.test.js
62
+ - persist_to_workspace :
63
+ root : ~/ant-design
64
+ paths :
65
+ - dist
66
+
67
+ compile :
68
+ << : *container_config
69
+ steps :
70
+ - checkout
71
+ - *attach_workspace
72
+ - run : npm run compile
73
+ - run : node ./tests/dekko/lib.test.js
74
+ - persist_to_workspace :
75
+ root : ~/ant-design
76
+ paths :
77
+ - lib
78
+ - es
40
79
41
80
lint :
42
81
<< : *container_config
43
82
steps :
83
+ - checkout
44
84
- *attach_workspace
45
85
- run : npm run lint
46
86
47
87
test_dist :
48
88
<< : *container_config
89
+ << : *react_16
49
90
steps :
91
+ - checkout
50
92
- *attach_workspace
51
- - run : npm run dist
52
- - run : node ./tests/dekko/dist.test.js
53
- - run : REACT=16 LIB_DIR=dist npm test
93
+ - run :
94
+ command : npm test -- -w 2
95
+ environment :
96
+ LIB_DIR : dist
54
97
55
98
test_lib :
56
99
<< : *container_config
100
+ << : *react_16
57
101
steps :
102
+ - checkout
58
103
- *attach_workspace
59
- - run : npm run compile
60
- - run : node ./tests/dekko/lib.test.js
61
- - run : REACT=16 LIB_DIR=lib npm test
104
+ - run :
105
+ command : npm test -- -w 2
106
+ environment :
107
+ LIB_DIR : lib
62
108
63
109
test_es :
64
110
<< : *container_config
111
+ << : *react_16
65
112
steps :
113
+ - checkout
66
114
- *attach_workspace
67
- - run : npm run compile
68
- - run : REACT=16 LIB_DIR=es npm test
115
+ - run :
116
+ command : npm test -- -w 2
117
+ environment :
118
+ LIB_DIR : es
69
119
70
120
test_dom :
71
121
<< : *container_config
122
+ << : *react_16
72
123
steps :
124
+ - checkout
73
125
- *attach_workspace
74
- - run : REACT=16 npm test -- --coverage
126
+ - run : npm test -- -w 2 --coverage
75
127
- run : bash <(curl -s https://codecov.io/bash)
76
128
77
129
test_node :
78
130
<< : *container_config
131
+ << : *react_16
79
132
steps :
133
+ - checkout
80
134
- *attach_workspace
81
- - run : REACT=16 npm run test-node
135
+ - run : npm run test-node -- -w 2
82
136
83
137
test_dist_15 :
84
138
<< : *container_config
139
+ << : *react_15
85
140
steps :
141
+ - checkout
86
142
- *attach_workspace
87
143
- *install_react
88
- - run : node ./tests/dekko/dist.test.js
89
- - run : REACT=15 LIB_DIR=dist npm test -u
144
+ - run :
145
+ command : npm test -- -w 2 -u
146
+ environment :
147
+ LIB_DIR : dist
90
148
91
149
test_lib_15 :
92
150
<< : *container_config
151
+ << : *react_15
93
152
steps :
153
+ - checkout
94
154
- *attach_workspace
95
155
- *install_react
96
- - run : npm run compile
97
- - run : node ./tests/dekko/lib.test.js
98
- - run : REACT=15 LIB_DIR=lib npm test
156
+ - run :
157
+ command : npm test -- -w 2 -u
158
+ environment :
159
+ LIB_DIR : lib
99
160
100
161
test_es_15 :
101
162
<< : *container_config
163
+ << : *react_15
102
164
steps :
165
+ - checkout
103
166
- *attach_workspace
104
167
- *install_react
105
- - run : npm run compile
106
- - run : REACT=15 LIB_DIR=es npm test
168
+ - run :
169
+ command : npm test -- -w 2 -u
170
+ environment :
171
+ LIB_DIR : es
107
172
108
173
test_dom_15 :
109
174
<< : *container_config
175
+ << : *react_15
110
176
steps :
177
+ - checkout
111
178
- *attach_workspace
112
179
- *install_react
113
- - run : REACT=15 npm test -- --coverage
114
- - run : bash <(curl -s https://codecov.io/bash)
180
+ - run : npm test -- -w 2 -u
115
181
116
182
test_node_15 :
117
183
<< : *container_config
184
+ << : *react_15
118
185
steps :
186
+ - checkout
119
187
- *attach_workspace
120
188
- *install_react
121
- - run : REACT=15 npm run test-node
189
+ - run : npm run test-node -- -w 2 -u
122
190
123
191
workflows :
124
192
version : 2
125
193
build-test :
126
194
jobs :
127
195
- setup
196
+ - dist :
197
+ requires :
198
+ - setup
199
+ - compile :
200
+ requires :
201
+ - setup
128
202
- lint :
129
203
requires :
130
204
- setup
131
205
- test_dist :
132
206
requires :
133
- - setup
207
+ - dist
134
208
- test_lib :
135
209
requires :
136
- - setup
210
+ - compile
137
211
- test_es :
138
212
requires :
139
- - setup
213
+ - compile
140
214
- test_dom :
141
215
requires :
142
216
- setup
@@ -145,13 +219,13 @@ workflows:
145
219
- setup
146
220
- test_dist_15 :
147
221
requires :
148
- - setup
222
+ - dist
149
223
- test_lib_15 :
150
224
requires :
151
- - setup
225
+ - compile
152
226
- test_es_15 :
153
227
requires :
154
- - setup
228
+ - compile
155
229
- test_dom_15 :
156
230
requires :
157
231
- setup
0 commit comments