Skip to content

Commit 9d96056

Browse files
committed
cache apt in circle.yml, fix data download commands
1 parent 2768968 commit 9d96056

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

circle.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,22 @@ dependencies:
66
cache_directories:
77
- "~/docker"
88
- "~/examples"
9+
- "~/.apt-cache"
910

1011
pre:
1112
- mkdir -p "~/scratch/nose"
1213
# Let CircleCI cache the apt archive
1314
- sudo rm -rf /var/cache/apt/archives && sudo ln -s ~/.apt-cache /var/cache/apt/archives && mkdir -p ~/.apt-cache/partial
15+
- sudo apt-get -y update && sudo apt-get install -y wget bzip2
1416

1517
override:
16-
- sudo apt-get -y update && sudo apt-get install -y wget bzip2
1718
- if [[ -e ~/docker/image.tar ]]; then docker load -i ~/docker/image.tar; fi
1819
- docker build -f docker/nipype_test_py27/Dockerfile -t nipype/nipype_test:py27 . :
1920
timeout: 1600
2021
- mkdir -p ~/docker; docker save nipype/nipype_test:py27 > ~/docker/image.tar :
2122
timeout: 1600
22-
- if [[ ! -d ~/examples/data ]]; then \
23-
wget -O nipype-tutorial.tar.bz2 https://googledrive.com/host/0BxI12kyv2olZR05SU1lPampNcVE && \
24-
tar jxvf nipype-tutorial.tar.bz2 && \
25-
mv nipype-tutorial/* ~/examples/; fi
26-
- if [[ ! -d ~/examples/feeds ]]; then \
27-
wget -O fsl-feeds.tar.gz https://googledrive.com/host/0BxI12kyv2olZNXBONlJKV0Y1Tm8 && \
28-
tar xzf fsl-feeds.tar.gz && \
29-
mv feeds ~/examples/; fi
23+
- if [[ ! -d ~/examples/data ]]; then wget -O nipype-tutorial.tar.bz2 https://googledrive.com/host/0BxI12kyv2olZR05SU1lPampNcVE && tar jxvf nipype-tutorial.tar.bz2 && mv nipype-tutorial/* ~/examples/; fi
24+
- if [[ ! -d ~/examples/feeds ]]; then wget -O fsl-feeds.tar.gz https://googledrive.com/host/0BxI12kyv2olZNXBONlJKV0Y1Tm8 && tar xzf fsl-feeds.tar.gz && mv feeds ~/examples/; fi
3025

3126
test:
3227
override:

0 commit comments

Comments
 (0)