forked from vuejs/vue-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
119 lines (107 loc) · 2.48 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
version: 2.1
defaults: &defaults
working_directory: ~/project/vue
docker:
- image: circleci/node:lts-browsers
aliases:
- &restore-yarn-cache
key: v2-vue-cli-{{ checksum "yarn.lock" }}
- &save-yarn-cache
key: v2-vue-cli-{{ checksum "yarn.lock" }}
paths:
- node_modules/
- ~/.cache
workflow_filters: &filters
filters:
branches:
ignore:
- docs
jobs:
install:
<<: *defaults
steps:
- checkout
- restore_cache: *restore-yarn-cache
- run: yarn --network-timeout 600000
- save_cache: *save-yarn-cache
- persist_to_workspace:
root: ~/
paths:
- project/vue
- .cache/Cypress
e2e:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: ./scripts/e2e-test/run-e2e-test.sh
core:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn test -p cli,cli-service,cli-shared-utils
typescript:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn test 'ts(?:\w(?!E2e))+\.spec\.js$'
plugins:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn lint-without-fix
- run: yarn check-links
- run: yarn test -p eslint,pwa,babel,babel-preset-app,vuex,router
tests:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: yarn test -p unit-mocha,unit-jest,e2e-cypress
# e2e-nightwatch was left out due to some unknown issues with selenium and the CI image
- run: yarn test tsPluginE2e
cli-ui:
<<: *defaults
steps:
- attach_workspace:
at: ~/
- run: cd packages/@vue/cli-ui && yarn test
- store_artifacts:
path: packages/@vue/cli-ui/tests/e2e/videos
- store_artifacts:
path: packages/@vue/cli-ui/tests/e2e/screenshots
- store_artifacts:
path: /home/circleci/.npm/_logs
workflows:
version: 2
test:
jobs:
- install:
<<: *filters
- core:
<<: *filters
requires:
- install
- typescript:
<<: *filters
requires:
- install
- plugins:
<<: *filters
requires:
- install
- tests:
<<: *filters
requires:
- install
- cli-ui:
<<: *filters
requires:
- install
- e2e:
<<: *filters
requires:
- install