Skip to content

Commit

Permalink
Add integration test: e2e-vue-cli (#10919)
Browse files Browse the repository at this point in the history
* chore: add e2e-vue-cli test

* chore: add node-browsers-executor

* chore: state why node-browsers-executor is required
  • Loading branch information
JLHwung authored and nicolo-ribaudo committed Jan 3, 2020
1 parent 9f832c2 commit e504805
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .circleci/config.yml
Expand Up @@ -48,6 +48,11 @@ executors:
docker:

This comment has been minimized.

Copy link
@Lvjiangsheng

Lvjiangsheng Jan 28, 2020

OMG I don't kown nothing here

- image: circleci/node:13
working_directory: ~/babel
# e2e-vue-cli test requires chromium
node-browsers-executor:
docker:
- image: circleci/node:13-browsers
working_directory: ~/babel

jobs:
build-standalone:
Expand Down Expand Up @@ -153,6 +158,14 @@ jobs:
at: /tmp/verdaccio-workspace
- 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:
version: 2
build-standalone:
Expand Down Expand Up @@ -189,3 +202,7 @@ workflows:
- e2e-create-react-app:
requires:
- publish-verdaccio
- e2e-vue-cli:
requires:
- publish-verdaccio

33 changes: 33 additions & 0 deletions scripts/integration-tests/e2e-vue-cli.sh
@@ -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

0 comments on commit e504805

Please sign in to comment.