Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
0fece1f7
Unverified
Commit
0fece1f7
authored
May 17, 2021
by
Nicolas Hug
Committed by
GitHub
May 17, 2021
Browse files
Add cross-PR caching within CircleCI for gallery examples (#3837)
parent
3a96fb57
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
.circleci/config.yml
.circleci/config.yml
+15
-0
.circleci/config.yml.in
.circleci/config.yml.in
+15
-0
No files found.
.circleci/config.yml
View file @
0fece1f7
...
...
@@ -916,6 +916,15 @@ jobs:
-
run
:
name
:
Install torchvision
command
:
.circleci/unittest/linux/scripts/install.sh
-
run
:
name
:
Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
command
:
echo "$(date +"%Y-%U")" > .circleci-weekly
-
restore_cache
:
keys
:
-
sphinx-gallery-{{ checksum "./docs/source/conf.py" }}-{{ checksum ".circleci-weekly" }}
-
run
:
name
:
Build docs
command
:
|
...
...
@@ -928,6 +937,12 @@ jobs:
pip install -r requirements.txt
make html
popd
-
save_cache
:
key
:
sphinx-gallery-{{ checksum "./docs/source/conf.py" }}-{{ checksum ".circleci-weekly" }}
paths
:
-
./docs/source/auto_examples
-
persist_to_workspace
:
root
:
./
paths
:
...
...
.circleci/config.yml.in
View file @
0fece1f7
...
...
@@ -916,6 +916,15 @@ jobs:
- run:
name: Install torchvision
command: .circleci/unittest/linux/scripts/install.sh
- run:
name: Generate cache key
# This will refresh cache on Sundays, nightly build should generate new cache.
command: echo "$(date +"%Y-%U")" > .circleci-weekly
- restore_cache:
{% raw %}
keys:
- sphinx-gallery-{{ checksum "./docs/source/conf.py" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
- run:
name: Build docs
command: |
...
...
@@ -928,6 +937,12 @@ jobs:
pip install -r requirements.txt
make html
popd
- save_cache:
{% raw %}
key: sphinx-gallery-{{ checksum "./docs/source/conf.py" }}-{{ checksum ".circleci-weekly" }}
{% endraw %}
paths:
- ./docs/source/auto_examples
- persist_to_workspace:
root: ./
paths:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment