Skip to content

Commit b4edfbc

Browse files
committed
fix(ci): update cached worked directory for pepolar [fresh workdir]
1 parent 636174a commit b4edfbc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.circleci/config.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ jobs:
128128
steps:
129129
- restore_cache:
130130
keys:
131-
- data-v1-{{ .Branch }}-
132-
- data-v1-master-
133-
- data-v1-
131+
- data-v2-{{ .Branch }}-
132+
- data-v2-master-
133+
- data-v2-
134134
- run:
135135
name: Setup git-annex
136136
command: |
@@ -190,9 +190,10 @@ jobs:
190190
echo "poll_sleep_duration = 0.01" >> /tmp/data/nipype.cfg
191191
echo "hash_method = content" >> /tmp/data/nipype.cfg
192192
echo "crashfile_format = txt" >> /tmp/data/nipype.cfg
193+
echo "use_relative_paths = true" >> /tmp/data/nipype.cfg
193194
194195
- save_cache:
195-
key: data-v1-{{ .Branch }}-{{ .BuildNum }}
196+
key: data-v2-{{ .Branch }}-{{ .BuildNum }}
196197
paths:
197198
- "/opt/circleci/.pyenv/versions/3.5.2"
198199
- /tmp/data
@@ -236,8 +237,9 @@ jobs:
236237
else
237238
rm -rf /tmp/work
238239
mkdir -p /tmp/work
239-
cd /tmp/work
240-
tar xzfv /tmp/data/workdir.tar.gz
240+
pushd /tmp/work
241+
tar xzfv /tmp/data/workdir.tar.gz --strip 1
242+
popd
241243
fi
242244
243245
wipe_dir=$( echo "${COMMIT_MSG}" | sed -n 's/.*\[wipe \([a-zA-Z0-9_\*]*\)\].*/\1/p' )

0 commit comments

Comments
 (0)