rename docker-related npm scripts so it's clear they are e2e infrastructure (https://github.com/woocommerce/woocommerce-blocks/pull/2237)

* rename docker-related npm scripts so it's clear they are e2e infrastructure

* fix travis e2e test job - update script name 😅
This commit is contained in:
Rua Haszard 2020-04-17 21:44:29 +12:00 committed by GitHub
parent 87fb1768a1
commit f8489dc870
2 changed files with 6 additions and 7 deletions

View File

@ -79,7 +79,7 @@ jobs:
- name: E2E Tests
script:
- npm ci
- npm run docker:up
- npm run test:e2e:up
- composer install
- npm run build:e2e-test
- npm run test:e2e

View File

@ -30,12 +30,6 @@
"changelog:zenhub": "node ./bin/changelog --changelogSrcType='ZENHUB_RELEASE'",
"deploy": "cross-env WOOCOMMERCE_BLOCKS_PHASE=stable composer install --no-dev && npm run build --loglevel error && sh ./bin/github-deploy.sh",
"dev": "cross-env BABEL_ENV=default webpack",
"docker:clear-all": "docker rmi --force $(docker images -q)",
"docker:down": "docker-compose down",
"docker:down:reset": "docker-compose down -v",
"docker:ssh": "docker exec -it woo-blocks_wordpress-www_1 /bin/bash",
"docker:up": "docker-compose up -d",
"docker:up:build": "docker-compose up --build -d",
"explore": "source-map-explorer",
"lint": "npm run lint:php && npm run lint:css && npm run lint:js",
"lint:ci": "npm run lint:js && npm run lint:css",
@ -54,6 +48,11 @@
"storybook": "start-storybook -c ./storybook -p 6006 --ci",
"storybook:build": "build-storybook -c ./storybook -o ./storybook/dist",
"test": "wp-scripts test-unit-js --config tests/js/jest.config.json",
"test:e2e:down": "docker-compose down",
"test:e2e:down:reset": "docker-compose down -v",
"test:e2e:ssh": "docker exec -it woo-blocks_wordpress-www_1 /bin/bash",
"test:e2e:up": "docker-compose up -d",
"test:e2e:up:build": "docker-compose up --build -d",
"test:e2e": "./tests/bin/e2e-test-integration.js",
"test:e2e-dev": "./tests/bin/e2e-test-integration.js --dev",
"test:e2e:update": "./tests/bin/e2e-test-integration.js -- --updateSnapshot",