|
48 | 48 | <<: *restore_cache_defaults
|
49 | 49 | - run: npm run test
|
50 | 50 |
|
51 |
| -# E2E test for current Angular. |
| 51 | + # E2E test for current Angular. |
52 | 52 | e2e-setup:
|
53 | 53 | <<: *defaults
|
54 | 54 | steps:
|
@@ -110,67 +110,30 @@ jobs:
|
110 | 110 | - run: cp -r /workspace/dist/ ./
|
111 | 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
|
112 | 112 |
|
113 |
| -# E2E test for Angular nightly. |
114 |
| - e2e-setup-nightly: |
| 113 | + # Master only E2E. |
| 114 | + ng2-e2e: |
115 | 115 | <<: *defaults
|
116 | 116 | steps:
|
117 | 117 | - checkout
|
118 | 118 | - restore_cache:
|
119 | 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/ |
| 120 | + - run: xvfb-run -a node tests/run_e2e.js --ng2 "--glob=tests/build/**" |
130 | 121 |
|
131 |
| - e2e-0-nightly: |
| 122 | + ng4-e2e: |
132 | 123 | <<: *defaults
|
133 | 124 | steps:
|
134 | 125 | - checkout
|
135 | 126 | - restore_cache:
|
136 | 127 | <<: *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/**" |
141 | 129 |
|
142 |
| - e2e-1-nightly: |
| 130 | + nightly-e2e: |
143 | 131 | <<: *defaults
|
144 | 132 | steps:
|
145 | 133 | - checkout
|
146 | 134 | - restore_cache:
|
147 | 135 | <<: *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/**" |
174 | 137 |
|
175 | 138 | workflows:
|
176 | 139 | version: 2
|
@@ -199,23 +162,19 @@ workflows:
|
199 | 162 | - e2e-3:
|
200 | 163 | requires:
|
201 | 164 | - 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: |
206 | 177 | filters:
|
207 | 178 | branches:
|
208 | 179 | only:
|
209 | 180 | - 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