91
91
- run : bazel build src/...
92
92
- run : bazel test src/... tools/public_api_guard/...
93
93
94
- # ------------------------------------------------------------------------------------------
95
- # Job that runs the unit tests on locally installed browsers (Chrome and Firefox headless).
96
- # The available browsers are installed through the angular/ngcontainer Docker image.
97
- # ------------------------------------------------------------------------------------------
98
- tests_local_browsers :
99
- docker : *docker-firefox-image
100
- resource_class : xlarge
101
- environment :
102
- TEST_PLATFORM : local
103
- steps :
104
- - *checkout_code
105
- - *restore_cache
106
- - *yarn_install
107
-
108
- # Launches the unit tests. The platform is determined by the "TEST_PLATFORM" environment
109
- # variable which has been configured above
110
- - run : yarn gulp ci:test
111
-
112
94
# ----------------------------------------------------------------
113
95
# Job that runs the e2e tests with Protractor and Chrome Headless
114
96
# ----------------------------------------------------------------
@@ -122,6 +104,20 @@ jobs:
122
104
123
105
- run : yarn gulp ci:e2e
124
106
107
+ # ------------------------------------------------------------------------------------------
108
+ # Job that runs the unit tests on locally installed browsers (Chrome and Firefox headless).
109
+ # The available browsers are installed through the angular/ngcontainer Docker image.
110
+ # ------------------------------------------------------------------------------------------
111
+ tests_local_browsers :
112
+ docker : *docker-firefox-image
113
+ resource_class : xlarge
114
+ steps :
115
+ - *checkout_code
116
+ - *restore_cache
117
+ - *yarn_install
118
+
119
+ - run : ./scripts/circleci/run-local-browser-tests.sh
120
+
125
121
# ----------------------------------------------------------------------------
126
122
# Job that runs the unit tests on Browserstack. The browsers that will be used
127
123
# to run the unit tests on Browserstack are set in: test/browser-providers.js
@@ -269,8 +265,6 @@ jobs:
269
265
270
266
- run : ./scripts/circleci/publish-snapshots.sh
271
267
272
- - *save_cache
273
-
274
268
# ----------------------------------------------------------------------------------------
275
269
# Workflow definitions. A workflow usually groups multiple jobs together. This is useful if
276
270
# one job depends on another.
@@ -313,6 +307,22 @@ workflows:
313
307
jobs :
314
308
- lint
315
309
310
+ # Snapshot tests workflow that is scheduled to run all specified jobs at midnight everyday.
311
+ # This workflow runs various jobs against the Angular snapshot builds from Github.
312
+ snapshot_tests :
313
+ jobs :
314
+ - tests_local_browsers
315
+ triggers :
316
+ - schedule :
317
+ cron : " 0 0 * * *"
318
+ filters :
319
+ branches :
320
+ only :
321
+ # We only want to run the "master" branch against the snapshot builds because
322
+ # it's not guaranteed that older versions of Angular Material always work
323
+ # with the latest Angular version.
324
+ - master
325
+
316
326
# ---------------------------
317
327
# General setup for CircleCI
318
328
# ---------------------------
0 commit comments