File tree Expand file tree Collapse file tree 3 files changed +83
-14
lines changed Expand file tree Collapse file tree 3 files changed +83
-14
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ defaults : &defaults
4+ working_directory : ~/project/vue
5+ docker :
6+ - image : circleci/node:6-browsers
7+
8+ jobs :
9+ install :
10+ << : *defaults
11+ steps :
12+ - checkout
13+ - restore_cache :
14+ keys :
15+ - v1-vue-{{ .Branch }}-{{ checksum "package-lock.json" }}
16+ - v1-vue-{{ .Branch }}-
17+ - v1-vue-
18+ - run :
19+ name : Install Dependencies
20+ command : npm install
21+ - save_cache :
22+ key : v1-vue-{{ .Branch }}-{{ checksum "package-lock.json" }}
23+ paths :
24+ - node_modules/
25+ - persist_to_workspace :
26+ root : ~/project
27+ paths :
28+ - vue
29+
30+ lint-flow-types :
31+ << : *defaults
32+ steps :
33+ - attach_workspace :
34+ at : ~/project
35+ - run : npm run lint
36+ - run : node_modules/.bin/flow check
37+ - run : npm run test:types
38+
39+ test-cover :
40+ << : *defaults
41+ steps :
42+ - attach_workspace :
43+ at : ~/project
44+ - run : npm run test:cover
45+ - run :
46+ name : report coverage stats for non-PRs
47+ command : |
48+ if [[ -z $CI_PULL_REQUEST ]]; then
49+ cat ./coverage/lcov.info | ./node_modules/.bin/codecov
50+ fi
51+
52+ test-e2e :
53+ << : *defaults
54+ steps :
55+ - attach_workspace :
56+ at : ~/project
57+ - run : npm run test:e2e -- --env phantomjs
58+
59+ test-ssr-weex :
60+ << : *defaults
61+ steps :
62+ - attach_workspace :
63+ at : ~/project
64+ - run : npm run test:ssr
65+ - run : npm run test:weex
66+
67+ workflows :
68+ version : 2
69+ install-and-parallel-test :
70+ jobs :
71+ - install
72+ - test-cover :
73+ requires :
74+ - install
75+ - lint-flow-types :
76+ requires :
77+ - install
78+ - test-e2e :
79+ requires :
80+ - install
81+ - test-ssr-weex :
82+ requires :
83+ - install
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments