Skip to content

Commit

Permalink
Move test builds to separate directory
Browse files Browse the repository at this point in the history
This prevents the test build from conflicting with the production build
in later jobs.
  • Loading branch information
Gudahtt committed Sep 19, 2019
1 parent 2ecac6b commit cec8c74
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,13 @@ jobs:
- 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
- dist-test

prep-docs:
docker:
Expand Down Expand Up @@ -203,6 +206,9 @@ jobs:
- checkout
- attach_workspace:
at: .
- run:
name: Move test build to dist
command: mv ./dist-test ./dist
- run:
name: test:e2e:chrome
command: yarn test:e2e:chrome
Expand All @@ -221,6 +227,9 @@ jobs:
command: ./.circleci/scripts/firefox-install
- attach_workspace:
at: .
- run:
name: Move test build to dist
command: mv ./dist-test ./dist
- run:
name: test:e2e:firefox
command: yarn test:e2e:firefox
Expand Down

0 comments on commit cec8c74

Please sign in to comment.