Skip to content

Commit

Permalink
fix(circleci): clear anatomical caches
Browse files Browse the repository at this point in the history
  • Loading branch information
oesteban committed Jun 8, 2019
1 parent 36832a3 commit 484c201
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,10 @@ jobs:
- data-v6-{{ .Revision }}
- restore_cache:
keys:
- ds005-anat-v14-{{ .Branch }}-{{ .Revision }}
- ds005-anat-v14-{{ .Branch }}
- ds005-anat-v14-master
- ds005-anat-v14-
- ds005-anat-v15-{{ .Branch }}-{{ .Revision }}
- ds005-anat-v15-{{ .Branch }}
- ds005-anat-v15-master
- ds005-anat-v15-
- run:
name: Setting up test
command: |
Expand Down Expand Up @@ -408,7 +408,7 @@ jobs:
rm -rf /tmp/ds005/work/reportlets
rm -rf /tmp/ds005/derivatives/fmriprep
- save_cache:
key: ds005-anat-v14-{{ .Branch }}-{{ .Revision }}-{{ epoch }}
key: ds005-anat-v15-{{ .Branch }}-{{ .Revision }}-{{ epoch }}
paths:
- /tmp/ds005/work

Expand Down Expand Up @@ -519,10 +519,10 @@ jobs:
- data-v6-{{ .Revision }}
- restore_cache:
keys:
- ds054-anat-v12-{{ .Branch }}-{{ .Revision }}
- ds054-anat-v12-{{ .Branch }}
- ds054-anat-v12-master
- ds054-anat-v12-
- ds054-anat-v13-{{ .Branch }}-{{ .Revision }}
- ds054-anat-v13-{{ .Branch }}
- ds054-anat-v13-master
- ds054-anat-v13-
- run:
name: Setting up test
command: |
Expand Down Expand Up @@ -562,7 +562,7 @@ jobs:
rm -rf /tmp/ds054/work/reportlets
rm -rf /tmp/ds054/derivatives/fmriprep
- save_cache:
key: ds054-anat-v12-{{ .Branch }}-{{ .Revision }}-{{ epoch }}
key: ds054-anat-v13-{{ .Branch }}-{{ .Revision }}-{{ epoch }}
paths:
- /tmp/ds054/work

Expand Down Expand Up @@ -656,10 +656,10 @@ jobs:
- data-v6-{{ .Revision }}
- restore_cache:
keys:
- ds210-anat-v10-{{ .Branch }}-{{ .Revision }}
- ds210-anat-v10-{{ .Branch }}-
- ds210-anat-v10-master
- ds210-anat-v10-
- ds210-anat-v11-{{ .Branch }}-{{ .Revision }}
- ds210-anat-v11-{{ .Branch }}-
- ds210-anat-v11-master
- ds210-anat-v11-
- run:
name: Setting up test
command: |
Expand Down Expand Up @@ -699,7 +699,7 @@ jobs:
rm -rf /tmp/ds210/work/reportlets
rm -rf /tmp/ds210/derivatives/fmriprep
- save_cache:
key: ds210-anat-v10-{{ .Branch }}-{{ .Revision }}-{{ epoch }}
key: ds210-anat-v11-{{ .Branch }}-{{ .Revision }}-{{ epoch }}
paths:
- /tmp/ds210/work

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ RUN python -c "from matplotlib import font_manager" && \
# Precaching atlases
RUN pip install --no-cache-dir "templateflow>=0.3.0,<0.4.0a0" && \
python -c "from templateflow import api as tfapi; \
tfapi.get('MNI152NLin6Asym'); \
tfapi.get('MNI152NLin2009cAsym'); \
tfapi.get('MNI152NLin6Asym', atlas=None); \
tfapi.get('MNI152NLin2009cAsym', atlas=None); \
tfapi.get('OASIS30ANTs');" && \
find $HOME/.cache/templateflow -type d -exec chmod go=u {} + && \
find $HOME/.cache/templateflow -type f -exec chmod go=u {} +
Expand Down

0 comments on commit 484c201

Please sign in to comment.