File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,21 @@ jobs:
265
265
266
266
- run : ./scripts/circleci/publish-snapshots.sh
267
267
268
+
269
+ # ----------------------------------------------------------------------------
270
+ # Job that runs the local browser tests against the Angular Github snapshots
271
+ # ----------------------------------------------------------------------------
272
+ snapshot_tests_local_browsers :
273
+ docker : *docker-firefox-image
274
+ resource_class : xlarge
275
+ steps :
276
+ - *checkout_code
277
+ - *restore_cache
278
+ - *yarn_install
279
+
280
+ - run : ./scripts/install-angular-snapshots.sh
281
+ - run : ./scripts/circleci/run-local-browser-tests.sh
282
+
268
283
# ----------------------------------------------------------------------------------------
269
284
# Workflow definitions. A workflow usually groups multiple jobs together. This is useful if
270
285
# one job depends on another.
@@ -311,7 +326,10 @@ workflows:
311
326
# This workflow runs various jobs against the Angular snapshot builds from Github.
312
327
snapshot_tests :
313
328
jobs :
314
- - tests_local_browsers
329
+ # Note that we need additional jobs for the nightly snapshot tests because there is no
330
+ # easy way to detect whether a job runs inside of a cronjob or specific workflow.
331
+ # See: https://circleci.com/ideas/?idea=CCI-I-295
332
+ - snapshot_tests_local_browsers
315
333
triggers :
316
334
- schedule :
317
335
cron : " 0 0 * * *"
Original file line number Diff line number Diff line change 7
7
# Go to project directory.
8
8
cd $( dirname ${0} ) /../..
9
9
10
- # In case the "snapshot_tests" workflow is currently running this script, we
11
- # want to run the local browser tests against the Angular snapshot builds.
12
- if [[ " ${CIRCLE_WORKFLOW_ID} " == " snapshot_tests" ]]; then
13
- ./scripts/install-angular-snapshots.sh
14
- fi
15
-
16
10
# Setup the test platform environment variable that will be read
17
11
# by the Karma configuration script.
18
12
export TEST_PLATFORM=" local"
You can’t perform that action at this time.
0 commit comments