Skip to content

Commit 80c3041

Browse files
committed
ci: add parallel ci
1 parent efcf3a2 commit 80c3041

File tree

1 file changed

+40
-23
lines changed

1 file changed

+40
-23
lines changed

.circleci/config.yml

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,53 @@
44
#
55
version: 2
66

7+
defaults: &defaults
8+
working_directory: ~/project/vuefire
9+
docker:
10+
- image: circleci/node:8
711

812
jobs:
9-
build:
10-
docker:
11-
# specify the version you desire here
12-
- image: circleci/node:8
13-
14-
# Specify service dependencies here if necessary
15-
# CircleCI maintains a library of pre-built images
16-
# documented at https://circleci.com/docs/2.0/circleci-images/
17-
# - image: circleci/mongo:3.4.4
18-
19-
working_directory: ~/repo
20-
13+
install:
14+
<<: *defaults
2115
steps:
2216
- checkout
23-
24-
# Download and cache dependencies
2517
- restore_cache:
2618
keys:
27-
- v1-dependencies-{{ checksum "package.json" }}
28-
# fallback to using the latest cache if no exact match is found
29-
- v1-dependencies-
30-
31-
- run: npm install
32-
19+
- v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
20+
- v1-vue-{{ .Branch }}-
21+
- v1-vue-
22+
- run: yarn install
3323
- save_cache:
24+
key: v1-vue-{{ .Branch }}-{{ checksum "yarn.lock" }}
3425
paths:
35-
- node_modules
36-
key: v1-dependencies-{{ checksum "package.json" }}
26+
- node_modules/
27+
- persist_to_workspace:
28+
root: ~/project
29+
paths:
30+
- vuefire
31+
32+
vuefire-core:
33+
<<: *defaults
34+
steps:
35+
- attach_workspace:
36+
at: ~/project/vuefire/packages/@posva/vuefire-core
37+
- run: npm test
3738

38-
# run tests!
39+
vuefire:
40+
<<: *defaults
41+
steps:
42+
- attach_workspace:
43+
at: ~/project/vuefire/packages/vuefire
3944
- run: npm test
45+
46+
workflows:
47+
version: 2
48+
install-and-parallel-test:
49+
jobs:
50+
- install
51+
- vuefire-core:
52+
requires:
53+
- install
54+
- vuefire:
55+
requires:
56+
- install

0 commit comments

Comments
 (0)