@@ -56,29 +56,33 @@ var_8: &gcp_decrypt_token "angular"
56
56
var_9 : &yarn_install
57
57
run : yarn install --frozen-lockfile --non-interactive
58
58
59
+ # Anchor that can be used to download and install Yarn globally in the bash environment.
60
+ var_10 : &yarn_download
61
+ run : curl -o- -L https://yarnpkg.com/install.sh | PROFILE=$BASH_ENV bash -s -- --version "1.16.0"
62
+
59
63
# Copies the Bazel config which is specifically for CircleCI to a location where Bazel picks it
60
64
# up and merges it with the project-wide bazel configuration (tools/bazel.rc)
61
- var_10 : ©_bazel_config
65
+ var_11 : ©_bazel_config
62
66
# Set up the CircleCI specific bazel configuration.
63
67
run : sudo cp ./.circleci/bazel.rc /etc/bazel.bazelrc
64
68
65
69
# Sets up a different Docker image that includes a moe recent Firefox version which
66
70
# is needed for headless testing.
67
- var_11 : &docker-firefox-image
71
+ var_12 : &docker-firefox-image
68
72
# TODO(devversion): Temporarily use a image that includes Firefox 62 because the
69
73
# ngcontainer image does include an old Firefox version that does not support headless.
70
74
- image : circleci/node:11.4.0-browsers
71
75
72
76
# Attaches the release output which has been stored in the workspace to the current job.
73
77
# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
74
- var_12 : &attach_release_output
78
+ var_13 : &attach_release_output
75
79
attach_workspace :
76
80
at : dist/
77
81
78
82
# Branch filter that we can specify for jobs that should only run on publish branches. This filter
79
83
# is used to ensure that not all upstream branches will be published as Github builds
80
84
# (e.g. revert branches, feature branches)
81
- var_13 : &publish_branches_filter
85
+ var_14 : &publish_branches_filter
82
86
branches :
83
87
only :
84
88
- master
@@ -92,15 +96,15 @@ var_13: &publish_branches_filter
92
96
# In order to reduce duplication we use a YAML anchor that just always excludes the "_presubmit"
93
97
# branch. We don't want to run Circle for the temporary "_presubmit" branch which is reserved
94
98
# for the caretaker.
95
- var_14 : &ignore_presubmit_branch_filter
99
+ var_15 : &ignore_presubmit_branch_filter
96
100
branches :
97
101
ignore :
98
102
- " _presubmit"
99
103
- " ivy-2019"
100
104
101
105
# Runs a script that sets up the Bazel remote execution. This will be used by jobs that run
102
106
# Bazel primarily and should benefit from remote caching and execution.
103
- var_15 : &setup_bazel_remote_execution
107
+ var_16 : &setup_bazel_remote_execution
104
108
run :
105
109
name : " Setup bazel RBE remote execution"
106
110
command : ./scripts/circleci/bazel/setup-remote-execution.sh
@@ -180,6 +184,7 @@ jobs:
180
184
steps :
181
185
- *checkout_code
182
186
- *restore_cache
187
+ - *yarn_download
183
188
- *yarn_install
184
189
185
190
- run : ./scripts/circleci/run-local-browser-tests.sh
@@ -197,6 +202,7 @@ jobs:
197
202
steps :
198
203
- *checkout_code
199
204
- *restore_cache
205
+ - *yarn_download
200
206
- *yarn_install
201
207
202
208
- run : ./scripts/circleci/run-browserstack-tests.sh
@@ -217,6 +223,7 @@ jobs:
217
223
steps :
218
224
- *checkout_code
219
225
- *restore_cache
226
+ - *yarn_download
220
227
- *yarn_install
221
228
222
229
- run : ./scripts/circleci/run-saucelabs-tests.sh
@@ -230,6 +237,7 @@ jobs:
230
237
steps :
231
238
- *checkout_code
232
239
- *restore_cache
240
+ - *yarn_download
233
241
- *yarn_install
234
242
- *attach_release_output
235
243
@@ -244,6 +252,7 @@ jobs:
244
252
steps :
245
253
- *checkout_code
246
254
- *restore_cache
255
+ - *yarn_download
247
256
- *yarn_install
248
257
249
258
- run : yarn gulp ci:prerender
@@ -256,6 +265,7 @@ jobs:
256
265
steps :
257
266
- *checkout_code
258
267
- *restore_cache
268
+ - *yarn_download
259
269
- *yarn_install
260
270
261
271
- run : ./scripts/circleci/lint-bazel-files.sh
@@ -271,6 +281,7 @@ jobs:
271
281
steps :
272
282
- *checkout_code
273
283
- *restore_cache
284
+ - *yarn_download
274
285
- *yarn_install
275
286
276
287
- run : yarn gulp ci:build-release-packages
@@ -342,6 +353,7 @@ jobs:
342
353
steps :
343
354
- *checkout_code
344
355
- *restore_cache
356
+ - *yarn_download
345
357
- *yarn_install
346
358
347
359
- run : node ./scripts/circleci/setup-angular-snapshots.js
@@ -362,6 +374,7 @@ jobs:
362
374
- *restore_cache
363
375
- *copy_bazel_config
364
376
- *setup_bazel_remote_execution
377
+ - *yarn_download
365
378
- *yarn_install
366
379
367
380
# Setup Angular ivy snapshots built with ngtsc but locked to a specific tag. We
@@ -392,6 +405,7 @@ jobs:
392
405
- *restore_cache
393
406
- *copy_bazel_config
394
407
- *setup_bazel_remote_execution
408
+ - *yarn_download
395
409
- *yarn_install
396
410
397
411
# Setup Angular ivy snapshots built with ngtsc.
0 commit comments