Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 87bc7a9

Browse files
authored
chore: use gulp-cache in CI (#2216)
* chore: use gulp-cache in CI * fix 1 * fix 2 * fix 3 * Update config.yml * Update config.yml
1 parent 012fedf commit 87bc7a9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.circleci/config.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- run:
2525
name: Add npm bin to PATH
2626
command: echo 'export PATH="${PATH}:$(npm bin)"' >> $BASH_ENV
27+
2728
- restore_cache:
2829
keys:
2930
- v1.1-dependencies-{{ checksum "yarn.lock" }}
@@ -37,6 +38,20 @@ jobs:
3738
- ~/.cache/yarn
3839
- .yarn-cache
3940
- node_modules
41+
42+
- restore_cache:
43+
keys:
44+
- v1-json-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
45+
- v1-json-{{ .Environment.CIRCLE_BRANCH }}
46+
- v1-json
47+
- run:
48+
name: Create JSON for docs & tests
49+
command: yarn gulp build:docs:json
50+
- save_cache:
51+
key: v1-json-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
52+
paths:
53+
- /tmp/gulp-cache
54+
4055
- run:
4156
name: Lint
4257
command: yarn lint

0 commit comments

Comments
 (0)