48
48
<< : *restore_cache_defaults
49
49
- run : npm run test
50
50
51
+ # E2E test for current Angular.
51
52
e2e-setup :
52
53
<< : *defaults
53
54
steps :
@@ -109,6 +110,68 @@ jobs:
109
110
- run : cp -r /workspace/dist/ ./
110
111
- run : xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-default/test-project --nb-shards=4 --shard=3 --nosilent
111
112
113
+ # E2E test for Angular nightly.
114
+ e2e-setup-nightly :
115
+ << : *defaults
116
+ steps :
117
+ - checkout
118
+ - restore_cache :
119
+ << : *restore_cache_defaults
120
+ - run : mkdir /workspace
121
+ - run : mkdir /workspace/angular-cli-e2e-nightly
122
+ # Ignore all tests, we just want the setup step to persist it to the workspace.
123
+ - run : node tests/run_e2e.js --tmpdir=/workspace/angular-cli-e2e-nightly --ignore=**/* --nightly
124
+ - run : mv dist /workspace/
125
+ - persist_to_workspace :
126
+ root : /workspace
127
+ paths :
128
+ - dist/
129
+ - angular-cli-e2e-nightly/
130
+
131
+ e2e-0-nightly :
132
+ << : *defaults
133
+ steps :
134
+ - checkout
135
+ - restore_cache :
136
+ << : *restore_cache_defaults
137
+ - attach_workspace :
138
+ << : *attach_workspace_defaults
139
+ - run : cp -r /workspace/dist/ ./
140
+ - run : xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-nightly/test-project --nb-shards=4 --shard=0 --nosilent --nightly
141
+
142
+ e2e-1-nightly :
143
+ << : *defaults
144
+ steps :
145
+ - checkout
146
+ - restore_cache :
147
+ << : *restore_cache_defaults
148
+ - attach_workspace :
149
+ << : *attach_workspace_defaults
150
+ - run : cp -r /workspace/dist/ ./
151
+ - run : xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-nightly/test-project --nb-shards=4 --shard=1 --nosilent --nightly
152
+
153
+ e2e-2-nightly :
154
+ << : *defaults
155
+ steps :
156
+ - checkout
157
+ - restore_cache :
158
+ << : *restore_cache_defaults
159
+ - attach_workspace :
160
+ << : *attach_workspace_defaults
161
+ - run : cp -r /workspace/dist/ ./
162
+ - run : xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-nightly/test-project --nb-shards=4 --shard=2 --nosilent --nightly
163
+
164
+ e2e-3-nightly :
165
+ << : *defaults
166
+ steps :
167
+ - checkout
168
+ - restore_cache :
169
+ << : *restore_cache_defaults
170
+ - attach_workspace :
171
+ << : *attach_workspace_defaults
172
+ - run : cp -r /workspace/dist/ ./
173
+ - run : xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-nightly/test-project --nb-shards=4 --shard=3 --nosilent --nightly
174
+
112
175
workflows :
113
176
version : 2
114
177
build_and_test :
@@ -120,6 +183,7 @@ workflows:
120
183
- test :
121
184
requires :
122
185
- build
186
+ # E2E test for current Angular.
123
187
- e2e-setup :
124
188
requires :
125
189
- build
@@ -135,3 +199,23 @@ workflows:
135
199
- e2e-3 :
136
200
requires :
137
201
- e2e-setup
202
+ # E2E test for Angular nightly.
203
+ - e2e-setup-nightly :
204
+ requires :
205
+ - build
206
+ filters :
207
+ branches :
208
+ only :
209
+ - master
210
+ - e2e-0-nightly :
211
+ requires :
212
+ - e2e-setup-nightly
213
+ - e2e-1-nightly :
214
+ requires :
215
+ - e2e-setup-nightly
216
+ - e2e-2-nightly :
217
+ requires :
218
+ - e2e-setup-nightly
219
+ - e2e-3-nightly :
220
+ requires :
221
+ - e2e-setup-nightly
0 commit comments