forked from vuejs/router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
114 lines (105 loc) · 2.51 KB
/
circle.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
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
defaults: &defaults
working_directory: ~/project/vue-router
docker:
- image: circleci/node:lts-browsers
jobs:
install:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v3-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v3-dependencies-cache-{{ .Branch }}-
- v3-dependencies-cache-
- run: yarn install --frozen-lockfile
- persist_to_workspace:
root: ~/project
paths:
- vue-router
build-e2e:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: yarn run build:e2e
- persist_to_workspace:
root: ~/project
paths:
- vue-router/e2e/__build__
test-e2e:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: yarn test:e2e:ci
- store_artifacts:
path: e2e/reports
- store_artifacts:
path: e2e/screenshots
- store_test_results:
path: e2e/reports
test-e2e-bs:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: yarn test:e2e:bs
- store_test_results:
path: e2e/reports
test-unit:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: yarn test:unit --maxWorkers=2
- store_artifacts:
path: coverage
build-lint:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: yarn lint
- run: yarn test:types
- run: yarn build
- run: yarn build:dts
- run: yarn run test:dts
# Save cache after this task. At this point e2e are still running
- save_cache:
key: v3-dependencies-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
coverage:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run:
name: Send code coverage
command: yarn run codecov
workflows:
version: 2
install-and-parallel-test:
jobs:
- install
- test-e2e:
requires:
- install
- test-e2e-bs:
requires:
- install
- test-unit:
requires:
- install
- build-lint:
requires:
- install
- coverage:
requires:
- test-unit