Skip to content

Commit

Permalink
Configure E2E tests to use caching and to not update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Dec 28, 2018
1 parent c37ba28 commit 95f9981
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,28 +68,28 @@ jobs:
- ./bin/setup-local-env.sh
script:
- $( npm bin )/jest --config test/e2e/jest.config.json --listTests > ~/.jest-e2e-tests
- npm run test-e2e -- $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )
- npm run test-e2e -- --ci --runInBand --cacheDirectory="$HOME/.jest-cache" $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )

- name: E2E tests (Admin with plugins) (2/2)
env: WP_VERSION=latest POPULAR_PLUGINS=true
install:
- ./bin/setup-local-env.sh
script:
- $( npm bin )/jest --config test/e2e/jest.config.json --listTests > ~/.jest-e2e-tests
- npm run test-e2e -- $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )
- npm run test-e2e -- --ci --runInBand --cacheDirectory="$HOME/.jest-cache" $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )

- name: E2E tests (Author without plugins) (1/2)
env: WP_VERSION=latest E2E_ROLE=author
install:
- ./bin/setup-local-env.sh
script:
- $( npm bin )/jest --config test/e2e/jest.config.json --listTests > ~/.jest-e2e-tests
- npm run test-e2e -- $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )
- npm run test-e2e -- --ci --runInBand --cacheDirectory="$HOME/.jest-cache" $( awk 'NR % 2 == 0' < ~/.jest-e2e-tests )

- name: E2E tests (Author without plugins) (2/2)
env: WP_VERSION=latest E2E_ROLE=author
install:
- ./bin/setup-local-env.sh
script:
- $( npm bin )/jest --config test/e2e/jest.config.json --listTests > ~/.jest-e2e-tests
- npm run test-e2e -- $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )
- npm run test-e2e -- --ci --runInBand --cacheDirectory="$HOME/.jest-cache" $( awk 'NR % 2 == 1' < ~/.jest-e2e-tests )

0 comments on commit 95f9981

Please sign in to comment.