Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d656a5

Browse files
committed
Cache built doctrees on CircleCI.
This probably doesn't save much time, but will save the intersphinx files in a cache that will hopefully reduce download errors.
1 parent e9a1733 commit 4d656a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.circleci/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ commands:
7878

7979
doc-build:
8080
steps:
81+
- restore_cache:
82+
keys:
83+
- sphinx-env-v1-{{ .BuildNum }}-{{ .Environment.CIRCLE_JOB }}
84+
- sphinx-env-v1-{{ .Environment.CIRCLE_PREVIOUS_BUILD_NUM }}-{{ .Environment.CIRCLE_JOB }}
8185
- run:
8286
name: Build documentation
8387
command: |
@@ -86,6 +90,10 @@ commands:
8690
make html O=-T
8791
rm -r build/html/_sources
8892
working_directory: doc
93+
- save_cache:
94+
key: sphinx-env-v1-{{ .BuildNum }}-{{ .Environment.CIRCLE_JOB }}
95+
paths:
96+
- doc/build/doctrees
8997

9098
doc-bundle:
9199
steps:

0 commit comments

Comments
 (0)