Revert the revert of "Use common test build during CI (#7196)" (#7404) (#7870)

This reverts commit 4b4c00e94f. The
original change was a possible optimization of CI, though it ended up
not having a huge impact. It was thought that it may have broken source
maps, because the test build overwrote the `dist` directory that the
source maps were written to. However this turned out not to be the
case, as the changes to `dist` are never persisted to the workspace.

This is being re-introduced because the test build is needed for an
additional job (the page load benchmark), and sharing the same build
for all three jobs would surely be faster than building it separately
three times.
feature/default_network_editable
Mark Stacey 5 years ago committed by GitHub
parent ca38635d22
commit 523121209f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      .circleci/config.yml

@ -13,6 +13,9 @@ workflows:
- prep-build: - prep-build:
requires: requires:
- prep-deps - prep-deps
- prep-build-test:
requires:
- prep-deps
# - prep-docs: # - prep-docs:
# requires: # requires:
# - prep-deps # - prep-deps
@ -28,10 +31,10 @@ workflows:
- prep-deps - prep-deps
- test-e2e-chrome: - test-e2e-chrome:
requires: requires:
- prep-deps - prep-build-test
- test-e2e-firefox: - test-e2e-firefox:
requires: requires:
- prep-deps - prep-build-test
- test-unit: - test-unit:
requires: requires:
- prep-deps - prep-deps
@ -131,6 +134,24 @@ jobs:
- dist - dist
- builds - builds
prep-build-test:
docker:
- image: circleci/node:10.16-browsers
steps:
- checkout
- attach_workspace:
at: .
- run:
name: Build extension for testing
command: yarn build:test
- run:
name: Move test build to 'dist-test' to avoid conflict with production build
command: mv ./dist ./dist-test
- persist_to_workspace:
root: .
paths:
- dist-test
prep-docs: prep-docs:
docker: docker:
- image: circleci/node:10.17-browsers - image: circleci/node:10.17-browsers
@ -218,9 +239,12 @@ jobs:
- checkout - checkout
- attach_workspace: - attach_workspace:
at: . at: .
- run:
name: Move test build to dist
command: mv ./dist-test ./dist
- run: - run:
name: test:e2e:chrome name: test:e2e:chrome
command: yarn build:test && yarn test:e2e:chrome command: yarn test:e2e:chrome
no_output_timeout: 20m no_output_timeout: 20m
- store_artifacts: - store_artifacts:
path: test-artifacts path: test-artifacts
@ -236,9 +260,12 @@ jobs:
command: ./.circleci/scripts/firefox-install command: ./.circleci/scripts/firefox-install
- attach_workspace: - attach_workspace:
at: . at: .
- run:
name: Move test build to dist
command: mv ./dist-test ./dist
- run: - run:
name: test:e2e:firefox name: test:e2e:firefox
command: yarn build:test && yarn test:e2e:firefox command: yarn test:e2e:firefox
no_output_timeout: 20m no_output_timeout: 20m
- store_artifacts: - store_artifacts:
path: test-artifacts path: test-artifacts

Loading…
Cancel
Save