Add integration test: e2e-vue-cli (#10919)
* chore: add e2e-vue-cli test * chore: add node-browsers-executor * chore: state why node-browsers-executor is required
This commit is contained in:
parent
9f832c2716
commit
e5048053aa
@ -48,6 +48,11 @@ executors:
|
|||||||
docker:
|
docker:
|
||||||
- image: circleci/node:13
|
- image: circleci/node:13
|
||||||
working_directory: ~/babel
|
working_directory: ~/babel
|
||||||
|
# e2e-vue-cli test requires chromium
|
||||||
|
node-browsers-executor:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:13-browsers
|
||||||
|
working_directory: ~/babel
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-standalone:
|
build-standalone:
|
||||||
@ -153,6 +158,14 @@ jobs:
|
|||||||
at: /tmp/verdaccio-workspace
|
at: /tmp/verdaccio-workspace
|
||||||
- run: ./scripts/integration-tests/e2e-create-react-app.sh
|
- run: ./scripts/integration-tests/e2e-create-react-app.sh
|
||||||
|
|
||||||
|
e2e-vue-cli:
|
||||||
|
executor: node-browsers-executor
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp/verdaccio-workspace
|
||||||
|
- run: ./scripts/integration-tests/e2e-vue-cli.sh
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
build-standalone:
|
build-standalone:
|
||||||
@ -189,3 +202,7 @@ workflows:
|
|||||||
- e2e-create-react-app:
|
- e2e-create-react-app:
|
||||||
requires:
|
requires:
|
||||||
- publish-verdaccio
|
- publish-verdaccio
|
||||||
|
- e2e-vue-cli:
|
||||||
|
requires:
|
||||||
|
- publish-verdaccio
|
||||||
|
|
||||||
|
|||||||
33
scripts/integration-tests/e2e-vue-cli.sh
Executable file
33
scripts/integration-tests/e2e-vue-cli.sh
Executable file
@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#==============================================================================#
|
||||||
|
# SETUP #
|
||||||
|
#==============================================================================#
|
||||||
|
|
||||||
|
# Start in scripts/integration-tests/ even if run from root directory
|
||||||
|
cd "$(dirname "$0")" || exit
|
||||||
|
|
||||||
|
source utils/local-registry.sh
|
||||||
|
source utils/cleanup.sh
|
||||||
|
|
||||||
|
# Echo every command being executed
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# Clone vue-cli
|
||||||
|
git clone --depth=1 https://github.com/vuejs/vue-cli tmp/vue-cli
|
||||||
|
cd tmp/vue-cli || exit
|
||||||
|
|
||||||
|
#==============================================================================#
|
||||||
|
# TEST #
|
||||||
|
#==============================================================================#
|
||||||
|
|
||||||
|
startLocalRegistry "$PWD"/../../verdaccio-config.yml
|
||||||
|
yarn install
|
||||||
|
# "yarn upgrade --scope @babel --latest" doesn't seem to work.
|
||||||
|
# a means "all", while \n is the enter needed to confirm the selection.
|
||||||
|
printf "a\n" | yarn upgrade-interactive --scope @babel --latest
|
||||||
|
|
||||||
|
# Test
|
||||||
|
CI=true yarn test -p babel
|
||||||
|
|
||||||
|
cleanup
|
||||||
Loading…
x
Reference in New Issue
Block a user