forked from Slicer/SlicerGitSVNArchive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
22 lines (19 loc) · 919 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
python:
version: 2.7.11
dependencies:
cache_directories:
- "~/docker"
override:
- docker info
- pip install scikit-ci-addons==0.11.0
- ci_addons docker load-pull-save slicer/slicer-dependencies
test:
override:
- "echo 'Notice: CircleCI does not build changes to Slicer dependencies' && if git diff --name-only master | grep -q SuperBuild > /dev/null; then echo 'Please create a Pull Request on https://github.com/thewtex/SlicerDocker according to the Update section of the project README.'; false; fi"
- docker run -e "BUILD_TOOL_FLAGS=-j3" --name slicer -v ~/Slicer:/usr/src/Slicer slicer/slicer-dependencies
- docker cp slicer:$(docker cp slicer:/usr/src/Slicer-build/Slicer-build/PACKAGE_FILE.txt - | tar xO) $CIRCLE_ARTIFACTS