Skip to content

Commit e5e7234

Browse files
committed
ci: run ng2/ng4/nightly in circleci like in travis
1 parent 265eb96 commit e5e7234

File tree

1 file changed

+20
-61
lines changed

1 file changed

+20
-61
lines changed

.circleci/config.yml

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

51-
# E2E test for current Angular.
51+
# E2E test for current Angular.
5252
e2e-setup:
5353
<<: *defaults
5454
steps:
@@ -110,67 +110,30 @@ jobs:
110110
- run: cp -r /workspace/dist/ ./
111111
- run: xvfb-run -a node tests/run_e2e.js --nobuild --reuse=/workspace/angular-cli-e2e-default/test-project --nb-shards=4 --shard=3 --nosilent
112112

113-
# E2E test for Angular nightly.
114-
e2e-setup-nightly:
113+
# Master only E2E.
114+
ng2-e2e:
115115
<<: *defaults
116116
steps:
117117
- checkout
118118
- restore_cache:
119119
<<: *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/
120+
- run: xvfb-run -a node tests/run_e2e.js --ng2 "--glob=tests/build/**"
130121

131-
e2e-0-nightly:
122+
ng4-e2e:
132123
<<: *defaults
133124
steps:
134125
- checkout
135126
- restore_cache:
136127
<<: *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
128+
- run: xvfb-run -a node tests/run_e2e.js --ng4 "--glob=tests/build/**"
141129

142-
e2e-1-nightly:
130+
nightly-e2e:
143131
<<: *defaults
144132
steps:
145133
- checkout
146134
- restore_cache:
147135
<<: *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
136+
- run: xvfb-run -a node tests/run_e2e.js --nightly "--glob=tests/build/**"
174137

175138
workflows:
176139
version: 2
@@ -199,23 +162,19 @@ workflows:
199162
- e2e-3:
200163
requires:
201164
- e2e-setup
202-
# E2E test for Angular nightly.
203-
- e2e-setup-nightly:
204-
requires:
205-
- build
165+
# Master only E2E.
166+
- ng2-e2e:
167+
filters:
168+
branches:
169+
only:
170+
- master
171+
- ng4-e2e:
172+
filters:
173+
branches:
174+
only:
175+
- master
176+
- nightly-e2e:
206177
filters:
207178
branches:
208179
only:
209180
- 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)