Skip to content

Commit 60d4c35

Browse files
filipesilvahansl
authored andcommitted
ci: run nightly on circleci
1 parent fd82e18 commit 60d4c35

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

.circleci/config.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
<<: *restore_cache_defaults
4949
- run: npm run test
5050

51+
# E2E test for current Angular.
5152
e2e-setup:
5253
<<: *defaults
5354
steps:
@@ -109,6 +110,68 @@ jobs:
109110
- run: cp -r /workspace/dist/ ./
110111
- run: xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-default/test-project --nb-shards=4 --shard=3 --nosilent
111112

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+
112175
workflows:
113176
version: 2
114177
build_and_test:
@@ -120,6 +183,7 @@ workflows:
120183
- test:
121184
requires:
122185
- build
186+
# E2E test for current Angular.
123187
- e2e-setup:
124188
requires:
125189
- build
@@ -135,3 +199,23 @@ workflows:
135199
- e2e-3:
136200
requires:
137201
- 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

Comments
 (0)