99# To validate changes, use an online parser, eg.
1010# http://yaml-online-parser.appspot.com/
1111
12- var_1 : &docker_image angular/ngcontainer:0.7.0
12+ var_1 : &docker_image circleci/node:12.9.1
1313var_2 : &cache_key v2-ng-layout-{{ .Branch }}-{{ checksum "yarn.lock" }}-0.7.0
1414
1515# Settings common to each job
@@ -53,14 +53,22 @@ var_8: &docker-firefox-image
5353 # TODO(devversion): Temporarily use a image that includes Firefox 62 because the
5454 # ngcontainer image does include an old Firefox version that does not support headless.
5555 # See the PR that fixes this: https://github.com/angular/angular/pull/26435
56- - image : circleci/node:10.12 -browsers
56+ - image : circleci/node:12.9.1 -browsers
5757
5858# Attaches the release output which has been stored in the workspace to the current job.
5959# https://circleci.com/docs/2.0/workflows/#using-workspaces-to-share-data-among-jobs
6060var_9 : &attach_release_output
6161 attach_workspace :
6262 at : dist/releases
6363
64+ # Anchor that can be used to download and install Yarn globally in the bash environment.
65+ var_10 : &yarn_download
66+ run :
67+ name : " Downloading and installing Yarn"
68+ command : |
69+ touch $BASH_ENV
70+ curl -o- -L https://yarnpkg.com/install.sh | PROFILE=$BASH_ENV bash -s -- --version "1.19.1"
71+
6472# -----------------------------
6573# Container version of CircleCI
6674# -----------------------------
8088 steps :
8189 - *checkout_code
8290 - *restore_cache
91+ - *yarn_download
8392 - *yarn_install
8493
8594 - run : yarn gulp :publish:build-releases
97106 steps :
98107 - *checkout_code
99108 - *restore_cache
109+ - *yarn_download
100110 - *yarn_install
101111
102112 - run : ./scripts/circleci/run-local-browser-tests.sh
@@ -113,6 +123,7 @@ jobs:
113123 steps :
114124 - *checkout_code
115125 - *restore_cache
126+ - *yarn_download
116127 - *yarn_install
117128
118129 - run : ./scripts/circleci/run-browserstack-tests.sh
@@ -132,6 +143,7 @@ jobs:
132143 steps :
133144 - *checkout_code
134145 - *restore_cache
146+ - *yarn_download
135147 - *yarn_install
136148
137149 - run : ./scripts/circleci/run-saucelabs-tests.sh
@@ -144,6 +156,7 @@ jobs:
144156 steps :
145157 - *checkout_code
146158 - *restore_cache
159+ - *yarn_download
147160 - *yarn_install
148161
149162 - run : yarn gulp ci:ssr
@@ -157,6 +170,7 @@ jobs:
157170 steps :
158171 - *checkout_code
159172 - *restore_cache
173+ - *yarn_download
160174 - *yarn_install
161175
162176 - run : yarn gulp ci:prerender
@@ -169,6 +183,7 @@ jobs:
169183 steps :
170184 - *checkout_code
171185 - *restore_cache
186+ - *yarn_download
172187 - *yarn_install
173188
174189 - run : yarn gulp ci:hw
@@ -181,6 +196,7 @@ jobs:
181196 steps :
182197 - *checkout_code
183198 - *restore_cache
199+ - *yarn_download
184200 - *yarn_install
185201
186202 - run : yarn gulp ci:aot
@@ -193,6 +209,7 @@ jobs:
193209 steps :
194210 - *checkout_code
195211 - *restore_cache
212+ - *yarn_download
196213 - *yarn_install
197214
198215 - run : yarn gulp ci:lint
@@ -206,6 +223,7 @@ jobs:
206223 steps :
207224 - *checkout_code
208225 - *restore_cache
226+ - *yarn_download
209227 - *yarn_install
210228
211229 - run : yarn gulp ci:build-release-packages
@@ -251,6 +269,7 @@ jobs:
251269
252270 - *checkout_code
253271 - *restore_cache
272+ - *yarn_download
254273 - *yarn_install
255274 - *attach_release_output
256275
0 commit comments