@@ -49,47 +49,39 @@ var_7: &save_cache
49
49
# Decryption token that is used to decode the GCP credentials file in ".circleci/gcp_token".
50
50
var_8 : &gcp_decrypt_token "angular"
51
51
52
- # Job step that ensures that the node module dependencies are installed and up-to-date. We use
53
- # Yarn with the frozen lockfile option in order to make sure that lock file and package.json are
54
- # in sync. Unlike in Travis, we don't need to manually purge the node modules if stale because
55
- # CircleCI automatically discards the cache if the checksum of the lock file has changed.
56
- var_9 : &yarn_install
52
+ # Job step that ensures that the node module dependencies are installed and up-to-date. We use
53
+ # Yarn with the frozen lockfile option in order to make sure that lock file and package.json are
54
+ # in sync. Unlike in Travis, we don't need to manually purge the node modules if stale because
55
+ # CircleCI automatically discards the cache if the checksum of the lock file has changed.
56
+ var_99 : &yarn_install
57
57
run :
58
58
name : " Installing project dependencies"
59
59
command : yarn install --frozen-lockfile --non-interactive
60
60
61
- # Anchor that can be used to download and install Yarn globally in the bash environment.
62
- var_10 : &yarn_download
63
- run :
64
- name : " Downloading and installing Yarn"
65
- command : |
66
- touch $BASH_ENV
67
- curl -o- -L https://yarnpkg.com/install.sh | PROFILE=$BASH_ENV bash -s -- --version "1.16.0"
68
-
69
61
# Sets up the Bazel config which is specific for CircleCI builds.
70
- var_11 : &setup_bazel_ci_config
62
+ var_9 : &setup_bazel_ci_config
71
63
run :
72
64
name : " Setting up Bazel configuration for CI"
73
65
command : |
74
66
echo "import %workspace%/.circleci/bazel.rc" >> ./.bazelrc
75
67
76
68
# Sets up a different Docker image that includes a moe recent Firefox version which
77
69
# is needed for headless testing.
78
- var_12 : &docker-firefox-image
70
+ var_10 : &docker-firefox-image
79
71
# TODO(devversion): Temporarily use a image that includes Firefox 62 because the
80
72
# ngcontainer image does include an old Firefox version that does not support headless.
81
73
- image : circleci/node:11.4.0-browsers
82
74
83
75
# Attaches the release output which has been stored in the workspace to the current job.
84
76
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
85
- var_13 : &attach_release_output
77
+ var_11 : &attach_release_output
86
78
attach_workspace :
87
79
at : dist/
88
80
89
81
# Branch filter that we can specify for jobs that should only run on publish branches. This filter
90
82
# is used to ensure that not all upstream branches will be published as Github builds
91
83
# (e.g. revert branches, feature branches)
92
- var_14 : &publish_branches_filter
84
+ var_12 : &publish_branches_filter
93
85
branches :
94
86
only :
95
87
- master
@@ -103,31 +95,31 @@ var_14: &publish_branches_filter
103
95
# In order to reduce duplication we use a YAML anchor that just always excludes the "_presubmit"
104
96
# branch. We don't want to run Circle for the temporary "_presubmit" branch which is reserved
105
97
# for the caretaker.
106
- var_15 : &ignore_presubmit_branch_filter
98
+ var_13 : &ignore_presubmit_branch_filter
107
99
branches :
108
100
ignore :
109
101
- " _presubmit"
110
102
- " ivy-2019"
111
103
112
104
# Runs a script that sets up the Bazel remote execution. This will be used by jobs that run
113
105
# Bazel primarily and should benefit from remote caching and execution.
114
- var_16 : &setup_bazel_remote_execution
106
+ var_14 : &setup_bazel_remote_execution
115
107
run :
116
108
name : " Setup bazel RBE remote execution"
117
109
command : ./scripts/circleci/bazel/setup-remote-execution.sh
118
110
119
111
# Sets up the bazel binary globally. We don't want to access bazel through Yarn and NodeJS
120
112
# because it could mean that the Bazel child process only has access to limited memory.
121
- var_17 : &setup_bazel_binary
113
+ var_15 : &setup_bazel_binary
122
114
run :
123
115
name : " Setting up global Bazel binary"
124
116
command : ./scripts/circleci/setup_bazel_binary.sh
125
117
126
118
# **Note**: When updating the beginning of the cache key, also update the fallback cache
127
119
# key to match the new cache key prefix. This allows us to take advantage of CircleCI's
128
120
# fallback caching. Read more here: https://circleci.com/docs/2.0/caching/#restoring-cache.
129
- var_18 : &mdc_deps_cache_key v1-mdc-deps-{{ checksum "/tmp/material-components-web/package-lock.json" }}
130
- var_19 : &mdc_deps_fallback_cache_key v1-mdc-deps-
121
+ var_16 : &mdc_deps_cache_key v1-mdc-deps-{{ checksum "/tmp/material-components-web/package-lock.json" }}
122
+ var_17 : &mdc_deps_fallback_cache_key v1-mdc-deps-
131
123
132
124
# -----------------------------
133
125
# Container version of CircleCI
@@ -153,7 +145,6 @@ jobs:
153
145
- *restore_cache
154
146
- *setup_bazel_ci_config
155
147
- *setup_bazel_remote_execution
156
- - *yarn_download
157
148
- *yarn_install
158
149
- *setup_bazel_binary
159
150
@@ -169,15 +160,14 @@ jobs:
169
160
environment :
170
161
GCP_DECRYPT_TOKEN : *gcp_decrypt_token
171
162
steps :
172
- - *checkout_code
173
- - *restore_cache
174
- - *setup_bazel_ci_config
175
- - *setup_bazel_remote_execution
176
- - *yarn_download
177
- - *yarn_install
178
- - *setup_bazel_binary
163
+ - *checkout_code
164
+ - *restore_cache
165
+ - *setup_bazel_ci_config
166
+ - *setup_bazel_remote_execution
167
+ - *yarn_install
168
+ - *setup_bazel_binary
179
169
180
- - run : bazel test tools/public_api_guard/...
170
+ - run : bazel test tools/public_api_guard/...
181
171
182
172
# -----------------------------------------------------------------
183
173
# Job that runs the e2e tests with Protractor and Chromium headless
@@ -192,7 +182,6 @@ jobs:
192
182
- *restore_cache
193
183
- *setup_bazel_ci_config
194
184
- *setup_bazel_remote_execution
195
- - *yarn_download
196
185
- *yarn_install
197
186
- *setup_bazel_binary
198
187
@@ -212,7 +201,6 @@ jobs:
212
201
- *restore_cache
213
202
- *setup_bazel_ci_config
214
203
- *setup_bazel_remote_execution
215
- - *yarn_download
216
204
- *yarn_install
217
205
- *setup_bazel_binary
218
206
@@ -231,7 +219,6 @@ jobs:
231
219
steps :
232
220
- *checkout_code
233
221
- *restore_cache
234
- - *yarn_download
235
222
- *yarn_install
236
223
237
224
- run : ./scripts/circleci/run-browserstack-tests.sh
@@ -250,12 +237,11 @@ jobs:
250
237
# a rate limit exception.
251
238
KARMA_PARALLEL_BROWSERS : 2
252
239
steps :
253
- - *checkout_code
254
- - *restore_cache
255
- - *yarn_download
256
- - *yarn_install
240
+ - *checkout_code
241
+ - *restore_cache
242
+ - *yarn_install
257
243
258
- - run : ./scripts/circleci/run-saucelabs-tests.sh
244
+ - run : ./scripts/circleci/run-saucelabs-tests.sh
259
245
260
246
# -------------------------------------------------------------------------
261
247
# Job that pre-render's the universal app with `@angular/platform-server`.
@@ -264,12 +250,11 @@ jobs:
264
250
prerender_build :
265
251
<< : *job_defaults
266
252
steps :
267
- - *checkout_code
268
- - *restore_cache
269
- - *yarn_download
270
- - *yarn_install
253
+ - *checkout_code
254
+ - *restore_cache
255
+ - *yarn_install
271
256
272
- - run : yarn gulp ci:prerender
257
+ - run : yarn gulp ci:prerender
273
258
274
259
# ----------------------------------
275
260
# Lint job. Runs the gulp lint task.
@@ -279,7 +264,6 @@ jobs:
279
264
steps :
280
265
- *checkout_code
281
266
- *restore_cache
282
- - *yarn_download
283
267
- *yarn_install
284
268
285
269
- run : ./scripts/circleci/lint-bazel-files.sh
@@ -297,7 +281,6 @@ jobs:
297
281
steps :
298
282
- *checkout_code
299
283
- *restore_cache
300
- - *yarn_download
301
284
- *yarn_install
302
285
303
286
- run : yarn gulp ci:build-release-packages
@@ -351,7 +334,6 @@ jobs:
351
334
- *attach_release_output
352
335
- *setup_bazel_ci_config
353
336
- *setup_bazel_remote_execution
354
- - *yarn_download
355
337
- *yarn_install
356
338
- *setup_bazel_binary
357
339
@@ -380,7 +362,6 @@ jobs:
380
362
- *restore_cache
381
363
- *setup_bazel_ci_config
382
364
- *setup_bazel_remote_execution
383
- - *yarn_download
384
365
- *yarn_install
385
366
- *setup_bazel_binary
386
367
@@ -401,7 +382,6 @@ jobs:
401
382
- *restore_cache
402
383
- *setup_bazel_ci_config
403
384
- *setup_bazel_remote_execution
404
- - *yarn_download
405
385
- *yarn_install
406
386
- *setup_bazel_binary
407
387
@@ -433,7 +413,6 @@ jobs:
433
413
- *restore_cache
434
414
- *setup_bazel_ci_config
435
415
- *setup_bazel_remote_execution
436
- - *yarn_download
437
416
- *yarn_install
438
417
- *setup_bazel_binary
439
418
@@ -464,7 +443,6 @@ jobs:
464
443
- *setup_bazel_binary
465
444
- *setup_bazel_ci_config
466
445
- *setup_bazel_remote_execution
467
- - *yarn_download
468
446
- *yarn_install
469
447
470
448
- run : git clone ${MDC_REPO_URL} --branch ${MDC_REPO_BRANCH} --depth 1 ${MDC_REPO_TMP_DIR}
0 commit comments