File tree Expand file tree Collapse file tree 1 file changed +45
-62
lines changed Expand file tree Collapse file tree 1 file changed +45
-62
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ references:
6
6
- image : circleci/node:8
7
7
working_directory : ~/ant-design
8
8
9
+ attach_workspace : &attach_workspace
10
+ attach_workspace :
11
+ at : ~/ant-design
12
+
9
13
restore_cache : &restore_cache
10
14
restore_cache :
11
15
keys :
@@ -21,100 +25,71 @@ references:
21
25
run : ./scripts/install-react.sh
22
26
23
27
jobs :
24
- lint :
28
+ setup :
25
29
<< : *container_config
26
30
steps :
27
- - checkout
28
31
- *restore_cache
29
32
- run : npm install
30
33
- run : node -v
31
34
- run : npm -v
32
35
- *save_cache
36
+ - persist_to_workspace :
37
+ root : ~/ant-design
38
+
39
+ lint :
40
+ << : *container_config
41
+ steps :
42
+ - *attach_workspace
33
43
- run : npm run lint
34
44
35
45
test_dist :
36
46
<< : *container_config
37
47
steps :
38
- - checkout
39
- - *restore_cache
40
- - run : npm install
41
- - run : node -v
42
- - run : npm -v
43
- - *save_cache
48
+ - *attach_workspace
44
49
- run : npm run dist
45
50
- run : node ./tests/dekko/dist.test.js
46
51
- run : REACT=16 LIB_DIR=dist npm test
47
52
48
53
test_lib :
49
54
<< : *container_config
50
55
steps :
51
- - checkout
52
- - *restore_cache
53
- - run : npm install
54
- - run : node -v
55
- - run : npm -v
56
- - *save_cache
56
+ - *attach_workspace
57
57
- run : npm run compile
58
58
- run : node ./tests/dekko/lib.test.js
59
59
- run : REACT=16 LIB_DIR=lib npm test
60
60
61
61
test_es :
62
62
<< : *container_config
63
63
steps :
64
- - checkout
65
- - *restore_cache
66
- - run : npm install
67
- - run : node -v
68
- - run : npm -v
69
- - *save_cache
64
+ - *attach_workspace
70
65
- run : npm run compile
71
66
- run : REACT=16 LIB_DIR=es npm test
72
67
73
68
test_dom :
74
69
<< : *container_config
75
70
steps :
76
- - checkout
77
- - *restore_cache
78
- - run : npm install
79
- - run : node -v
80
- - run : npm -v
81
- - *save_cache
71
+ - *attach_workspace
82
72
- run : REACT=16 npm test -- --coverage
83
73
- run : bash <(curl -s https://codecov.io/bash)
84
74
85
75
test_node :
86
76
<< : *container_config
87
77
steps :
88
- - checkout
89
- - *restore_cache
90
- - run : npm install
91
- - run : node -v
92
- - run : npm -v
93
- - *save_cache
78
+ - *attach_workspace
94
79
- run : REACT=16 npm run test-node
95
80
96
81
test_dist_15 :
97
82
<< : *container_config
98
83
steps :
99
- - checkout
100
- - *restore_cache
101
- - run : npm install
102
- - run : node -v
103
- - run : npm -v
104
- - *save_cache
84
+ - *attach_workspace
105
85
- *install_react
106
86
- run : node ./tests/dekko/dist.test.js
107
87
- run : REACT=15 LIB_DIR=dist npm test -u
108
88
109
89
test_lib_15 :
110
90
<< : *container_config
111
91
steps :
112
- - checkout
113
- - *restore_cache
114
- - run : npm install
115
- - run : node -v
116
- - run : npm -v
117
- - *save_cache
92
+ - *attach_workspace
118
93
- *install_react
119
94
- run : npm run compile
120
95
- run : node ./tests/dekko/lib.test.js
@@ -123,53 +98,61 @@ jobs:
123
98
test_es_15 :
124
99
<< : *container_config
125
100
steps :
126
- - checkout
127
- - *restore_cache
128
- - run : npm install
129
- - run : node -v
130
- - run : npm -v
131
- - *save_cache
101
+ - *attach_workspace
132
102
- *install_react
133
103
- run : npm run compile
134
104
- run : REACT=15 LIB_DIR=es npm test
135
105
136
106
test_dom_15 :
137
107
<< : *container_config
138
108
steps :
139
- - checkout
140
- - *restore_cache
141
- - run : npm install
142
- - run : node -v
143
- - run : npm -v
144
- - *save_cache
109
+ - *attach_workspace
145
110
- *install_react
146
111
- run : REACT=15 npm test -- --coverage
147
112
- run : bash <(curl -s https://codecov.io/bash)
148
113
149
114
test_node_15 :
150
115
<< : *container_config
151
116
steps :
152
- - checkout
153
- - *restore_cache
154
- - run : npm install
155
- - run : node -v
156
- - run : npm -v
157
- - *save_cache
117
+ - *attach_workspace
158
118
- *install_react
159
119
- run : REACT=15 npm run test-node
160
120
161
121
workflows :
162
122
version : 2
163
123
build-test :
164
124
jobs :
125
+ - setup
165
126
- lint :
127
+ requires :
128
+ - setup
166
129
- test-dist :
130
+ requires :
131
+ - setup
167
132
- test-lib :
133
+ requires :
134
+ - setup
168
135
- test-es :
136
+ requires :
137
+ - setup
169
138
- test-dom :
139
+ requires :
140
+ - setup
170
141
- test-node :
142
+ requires :
143
+ - setup
171
144
- test-dist-15 :
145
+ requires :
146
+ - setup
172
147
- test-lib-15 :
148
+ requires :
149
+ - setup
173
150
- test-es-15 :
151
+ requires :
152
+ - setup
174
153
- test-dom-15 :
154
+ requires :
155
+ - setup
175
156
- test-node-15 :
157
+ requires :
158
+ - setup
You can’t perform that action at this time.
0 commit comments