Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(test): test against multi versions of vue
- Loading branch information
Pooya Parsa
committed
Apr 1, 2018
1 parent
9ce5436
commit 25d0b13
Showing
4 changed files
with
98 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,46 +1,101 @@ | |||
version: 2 | version: 2 | ||
|
|||
defaults: &defaults | |||
working_directory: ~/project/bootstrap-vue | |||
docker: | |||
- image: banian/node | |||
|
|||
jobs: | jobs: | ||
build: | setup: | ||
working_directory: /usr/src/app | <<: *defaults | ||
docker: | |||
- image: banian/node | |||
steps: | steps: | ||
# Checkout repository | |||
- checkout | - checkout | ||
|
|||
# Restore cache | |||
- restore_cache: | - restore_cache: | ||
key: yarn-{{ checksum "yarn.lock" }} | key: yarn-{{ checksum "yarn.lock" }} | ||
|
|||
# Install dependencies | |||
- run: | - run: | ||
name: Install Dependencies | name: Install Dependencies | ||
command: NODE_ENV=dev yarn | command: NODE_ENV=dev yarn | ||
|
|||
# Keep cache | |||
- save_cache: | - save_cache: | ||
key: yarn-{{ checksum "yarn.lock" }} | key: yarn-{{ checksum "yarn.lock" }} | ||
paths: | paths: | ||
- "node_modules" | - "node_modules" | ||
- persist_to_workspace: | |||
root: ~/project | |||
paths: | |||
- bootstrap-vue | |||
|
|
||
# Build | lint: | ||
- run: | <<: *defaults | ||
name: Build | steps: | ||
command: | | - run: | ||
mkdir -p dist | name: Lint | ||
yarn build | command: yarn lint | ||
|
|
||
# Test | build: | ||
- run: | <<: *defaults | ||
name: Tests | steps: | ||
command: yarn test -- --maxWorkers=2 --coverage && yarn codecov | - run: | ||
name: Build | |||
command: yarn build | |||
|
|
||
# Publish Docs | test-latest: | ||
- deploy: | <<: *defaults | ||
steps: | |||
- attach_workspace: | |||
at: ~/project | |||
- run: | |||
name: Test | |||
command: yarn test --maxWorkers=2 --coverage && yarn codecov | |||
environment: | |||
- VUE_VERSION: "latest" | |||
|
|||
test-beta: | |||
<<: *defaults | |||
steps: | |||
- attach_workspace: | |||
at: ~/project | |||
- run: | |||
name: Test | |||
command: yarn test --maxWorkers=2 --coverage && yarn codecov | |||
environment: | |||
- VUE_VERSION: "beta" | |||
|
|||
docs: | |||
<<: *defaults | |||
steps: | |||
- run: | |||
name: Publish Docs | name: Publish Docs | ||
command: | | command: | | ||
if [ "${CIRCLE_BRANCH}" == "master" ]; then | git config --global user.email vuebootstrap@gmail.com | ||
git config --global user.email vuebootstrap@gmail.com | git config --global user.name BootstrapVue | ||
git config --global user.name BootstrapVue | yarn docs-gen && yarn docs-publish | ||
yarn docs-gen && yarn docs-publish | |||
fi | workflows: | ||
version: 2 | |||
setup-and-parallel-test: | |||
jobs: | |||
- setup | |||
|
|||
- lint: | |||
requires: | |||
- setup | |||
|
|||
- build: | |||
requires: | |||
- setup | |||
|
|||
- test-latest: | |||
requires: | |||
- setup | |||
|
|||
- test-beta: | |||
requires: | |||
- setup | |||
|
|||
- docs: | |||
requires: | |||
- build | |||
filters: | |||
branches: | |||
only: | |||
- master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters