Skip to content

Commit 6d500c2

Browse files
authored
Scripts: Remove npm run build from test-e2e default run (#13420)
1 parent cd63614 commit 6d500c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
- ./bin/setup-local-env.sh
6969
script:
7070
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
71+
- npm run build
7172
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )
7273

7374
- name: E2E tests (Admin with plugins) (2/2)
@@ -76,6 +77,7 @@ jobs:
7677
- ./bin/setup-local-env.sh
7778
script:
7879
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
80+
- npm run build
7981
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )
8082

8183
- name: E2E tests (Author without plugins) (1/2)
@@ -84,6 +86,7 @@ jobs:
8486
- ./bin/setup-local-env.sh
8587
script:
8688
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
89+
- npm run build
8790
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )
8891

8992
- name: E2E tests (Author without plugins) (2/2)
@@ -92,4 +95,5 @@ jobs:
9295
- ./bin/setup-local-env.sh
9396
script:
9497
- $( npm bin )/wp-scripts test-e2e --config=./packages/e2e-tests/jest.config.js --listTests > ~/.jest-e2e-tests
98+
- npm run build
9599
- npm run test-e2e -- --ci --cacheDirectory="$HOME/.jest-cache" --runTestsByPath $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"publish:dev": "npm run build:packages && lerna publish --npm-tag next",
178178
"publish:prod": "npm run build:packages && lerna publish",
179179
"test": "npm run lint && npm run test-unit",
180-
"pretest-e2e": "concurrently \"./bin/reset-e2e-tests.sh\" \"npm run build\"",
180+
"pretest-e2e": "./bin/reset-e2e-tests.sh",
181181
"test-e2e": "wp-scripts test-e2e --config packages/e2e-tests/jest.config.js",
182182
"test-e2e:watch": "npm run test-e2e -- --watch",
183183
"test-php": "npm run lint-php && npm run test-unit-php",

0 commit comments

Comments
 (0)