Skip to content

Commit 063a33c

Browse files
committed
fix(circleci): tar up git-annex-standalone distribution
1 parent de29d1b commit 063a33c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.circleci/config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ jobs:
3535
- run:
3636
name: Install git and git-annex
3737
command: |
38-
if [[ ! -d "/usr/lib/git-annex.linux" || ! -e "/usr/bin/git-annex-shell" ]]; then
38+
if [[ ! -e "/tmp/cache/git-annex-standalone.tar.gz" ]]; then
3939
wget -O- http://neuro.debian.net/lists/trusty.us-ca.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
4040
sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
4141
sudo apt update && sudo apt-get install -y --no-install-recommends git-annex-standalone
42+
mkdir -p /tmp/cache
43+
tar czvf /tmp/cache/git-annex-standalone.tar.gz /usr/bin/git-annex /usr/bin/git-annex-shell /usr/lib/git-annex.linux
44+
else
45+
sudo tar xzfv /tmp/cache/git-annex-standalone.tar.gz
4246
fi
4347
git config --global user.name "First Last"
4448
git config --global user.email "[email protected]"
@@ -48,9 +52,7 @@ jobs:
4852
paths:
4953
- "/opt/circleci/.pyenv/versions/3.5.2"
5054
- "/tmp/data/templateflow"
51-
- "/usr/lib/git-annex.linux"
52-
- "/usr/bin/git-annex"
53-
- "/usr/bin/git-annex-shell"
55+
- "/tmp/cache"
5456

5557
- run:
5658
name: Run tests (w/o DataLad)

0 commit comments

Comments
 (0)