|
|
@@ -3,7 +3,7 @@ version: 2
|
|
|
defaults: &defaults
|
|
|
working_directory: ~/project/vue
|
|
|
docker:
|
|
|
- - image: vuejs/ci
|
|
|
+ - image: node:lts
|
|
|
|
|
|
jobs:
|
|
|
install:
|
|
|
@@ -15,6 +15,7 @@ jobs:
|
|
|
- v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
|
|
- v1-vue-{{ .Branch }}-
|
|
|
- v1-vue-
|
|
|
+
|
|
|
- run: npm install
|
|
|
- save_cache:
|
|
|
key: v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
|
|
|
@@ -41,11 +42,11 @@ jobs:
|
|
|
at: ~/project
|
|
|
- run: npm run test:cover
|
|
|
- run:
|
|
|
- name: report coverage stats for non-PRs
|
|
|
- command: |
|
|
|
- if [[ -z $CI_PULL_REQUEST ]]; then
|
|
|
- ./node_modules/.bin/codecov
|
|
|
- fi
|
|
|
+ name: report coverage stats for non-PRs
|
|
|
+ command: |
|
|
|
+ if [[ -z $CI_PULL_REQUEST ]]; then
|
|
|
+ ./node_modules/.bin/codecov
|
|
|
+ fi
|
|
|
|
|
|
test-e2e:
|
|
|
<<: *defaults
|
|
|
@@ -107,8 +108,7 @@ workflows:
|
|
|
cron: "0 13 * * 1"
|
|
|
filters:
|
|
|
branches:
|
|
|
- only:
|
|
|
- dev
|
|
|
+ only: dev
|
|
|
jobs:
|
|
|
- install
|
|
|
- test-cover:
|