-
Notifications
You must be signed in to change notification settings - Fork 672
/
config.yml
148 lines (147 loc) · 3.38 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
version: 2
defaults: &defaults
working_directory: ~/repo/vue-test-utils
docker:
- image: circleci/node:6.13.0-stretch-browsers
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_version_2.0.8:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.0.8"
test_version_2.1.10:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.1.10"
test_version_2.2.6:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.2.6"
test_version_2.3.4:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.3.4"
test_version_2.4.2:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.4.2"
test_version_2.5.13:
<<: *defaults
steps:
- attach_workspace:
at: ~/repo
- *restore_node_modules
- run: yarn test:compat "2.5.16"
workflows:
version: 2
install-tests:
jobs:
- install
- bootstrap:
requires:
- install
- build_test:
requires:
- install
- test:
requires:
- install
- test_version_2.0.8:
requires:
- install
- build_test
- test
- test_version_2.1.10:
requires:
- install
- build_test
- test
- test_version_2.2.6:
requires:
- install
- build_test
- test
- test_version_2.3.4:
requires:
- install
- build_test
- test
- test_version_2.4.2:
requires:
- install
- build_test
- test
- test_version_2.5.13:
requires:
- install
- build_test
- test