build: fix snapshot local browsers cronjob test (#16362)

The `snapshot_tests_local_browsers` job currently seems
to fail because in order to run the setup snapshots script,
we already need to have the `node_modules` installed. This
means that we need to run Yarn twice for the cronjob. Though
this shouldn't have any performance implications because
we recently updated Yarn to a version that is able to
properly cache/restore the `node_modules`.
This commit is contained in:
Paul Gschwendtner
2019-06-24 17:48:32 +02:00
committed by Jeremy Elbourn
parent 10370ef659
commit e2d9f0e2d1
+4 -3
View File
@@ -367,11 +367,12 @@ jobs:
- *checkout_code
- *restore_cache
- *yarn_download
- *yarn_install
- run: node ./scripts/circleci/setup-angular-snapshots.js --tag master
# Install yarn dependencies after the package.json has been updated. Note that
# we can't use frozen-lockfile since the setup snapshots script does not update
# the lock file.
# We need to re-run yarn install in order to pull the Angular snapshot builds. Note
# that we can't use the "--frozen-lockfile" option since the setup snapshots script does
# not update the lock file.
- run: yarn install --non-interactive
- run: ./scripts/circleci/run-local-browser-tests.sh