-
Notifications
You must be signed in to change notification settings - Fork 668
/
Copy pathconfig.yml
88 lines (87 loc) · 1.96 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: 2
defaults: &defaults
working_directory: ~/repo/vue-test-utils
docker:
- image: vuejs/ci
restore_node_modules: &restore_node_modules
restore_cache:
name: Restore node_modules cache
keys:
- v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
jobs:
install:
<<: *defaults
steps:
- checkout
- *restore_node_modules
- run:
name: remove vuepress from dependencies
command: sed -i '/vuepress/ d' package.json
- run:
name: yarn --version
command: yarn --version
- run:
name: yarn install
command: yarn install
- save_cache:
name: Save dependencies cache
key: v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules/
- persist_to_workspace:
root: ~/repo
paths:
- vue-test-utils/
bootstrap:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run:
name: yarn bootstrap
command: yarn bootstrap
build_test:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run:
name: yarn build:test
command: yarn build:test
test:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run:
name: yarn test
command: yarn test
test_compat:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat
workflows:
version: 2
install-tests:
jobs:
- install
- bootstrap:
requires:
- install
- build_test:
requires:
- install
- test:
requires:
- install
- test_compat:
requires:
- install
- build_test
- test