Skip to content

Commit 2802c50

Browse files
committed
fix(CircleCI): resolve bug with cached data on Circle
1 parent cc6484f commit 2802c50

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ jobs:
126126
steps:
127127
- restore_cache:
128128
keys:
129-
- data-v1-{{ .Revision }}
130-
- data-v1-
129+
- data-v2-{{ .Revision }}
130+
- data-v2-
131131
- run:
132132
name: Get test data from THP002
133133
command: |
@@ -142,7 +142,7 @@ jobs:
142142
- run:
143143
name: Get FreeSurfer derivatives for THP002
144144
command: |
145-
if [[ ! -d /tmp/data/THP002/derivatives/freesurfer ]]; then
145+
if [[ ! -d /tmp/data/THP002/derivatives/freesurfer-6.0.1 ]]; then
146146
mkdir -p /tmp/data/THP002/derivatives
147147
wget --retry-connrefused --waitretry=5 --read-timeout=20 --timeout=15 -t 0 -q \
148148
-O THP002_derivatives_freesurfer.tar.gz "https://files.osf.io/v1/resources/8k95s/providers/osfstorage/5d7d87ce7483ec0017530cc9"
@@ -193,7 +193,7 @@ jobs:
193193
- fslicense
194194
- config/nipype.cfg
195195
- save_cache:
196-
key: data-v1-{{ .Revision }}-{{ epoch }}
196+
key: data-v2-{{ .Revision }}-{{ epoch }}
197197
paths:
198198
- /tmp/data
199199

@@ -222,7 +222,7 @@ jobs:
222222
at: /tmp
223223
- restore_cache:
224224
keys:
225-
- data-v1-{{ .Revision }}
225+
- data-v2-{{ .Revision }}
226226
- restore_cache:
227227
keys:
228228
- build-v1-{{ .Branch }}-{{ epoch }}
@@ -329,7 +329,7 @@ jobs:
329329
at: /tmp
330330
- restore_cache:
331331
keys:
332-
- data-v1-{{ .Revision }}
332+
- data-v2-{{ .Revision }}
333333
- restore_cache:
334334
keys:
335335
- build-v1-{{ .Branch }}-{{ epoch }}

0 commit comments

Comments
 (0)