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

Skip to content

Commit d77458e

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 51732db commit d77458e

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
@@ -77,6 +77,10 @@ commands:
7777

7878
doc-build:
7979
steps:
80+
- restore_cache:
81+
keys:
82+
- sphinx-env-v1-{{ .BuildNum }}-{{ .Environment.CIRCLE_JOB }}
83+
- sphinx-env-v1-{{ .Environment.CIRCLE_PREVIOUS_BUILD_NUM }}-{{ .Environment.CIRCLE_JOB }}
8084
- run:
8185
name: Build documentation
8286
command: |
@@ -85,6 +89,10 @@ commands:
8589
make html O=-T
8690
rm -r build/html/_sources
8791
working_directory: doc
92+
- save_cache:
93+
key: sphinx-env-v1-{{ .BuildNum }}-{{ .Environment.CIRCLE_JOB }}
94+
paths:
95+
- doc/build/doctrees
8896

8997
doc-bundle:
9098
steps:

0 commit comments

Comments
 (0)