-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
70 lines (65 loc) · 2.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
language: generic
sudo: true
addons:
apt:
sources:
- george-edison55-precise-backports
- llvm-toolchain-precise-3.8
- ubuntu-toolchain-r-test
packages:
- cmake
- cmake-data
- g++-5
- libboost-all-dev
- libgtest-dev
- libdcmtk2-dev
- libgflags-dev
- libgoogle-glog-dev
- wget
matrix:
include:
- os: osx
compiler: clang
- os: osx
compiler: gcc
- os: linux
compiler: gcc
env: COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5
before_script:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then echo "need cmake 3.2"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update && brew install glog ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install dcmtk; fi
- ls ~
- git clone https://github.com/google/glog ~/glog
- if [ ! -e ~/glog-build/install_manifest.txt ]; then
mkdir -p ~/glog-build &&
cd ~/glog-build &&
cmake -DCMAKE_BUILD_TYPE=Release ~/glog &&
make -j2;
fi
- cd ~/glog-build
- sudo make install #step 1 to here
- git clone --branch=release-1.8.0 https://github.com/google/googletest ~/googletest
- if [ ! -e ~/googletest-build/install_manifest.txt ]; then
mkdir -p ~/googletest-build &&
cd ~/googletest-build &&
cmake -DCMAKE_BUILD_TYPE=Release ~/googletest &&
make -j2;
fi
- cd ~/googletest-build
- sudo make install #step 1 to here
- git clone --branch=v3.1.1 https://github.com/nlohmann/json.git ~/json
- cd ~/json
- cmake -DBUILD_TESTING=OFF .
- make -j2
- sudo make install
- cd ~
- git clone --branch=v2.2.0 https://github.com/ANTsX/ANTs.git ~/ANTs
- if [ ! -e ~/ANTS-BUILD/ANTS-build ]; then
mkdir -p ~/ANTS-BUILD &&
cd ~/ANTS-BUILD &&
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING:BOOL=OFF ~/ANTs && make -j2 --keep-going;
fi #step 4 to here
script:
- ls ~/ANTS-BUILD
- cd ~/build/UCL/petmr-RESOLUTE && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DITK_DIR=$HOME/ANTS-BUILD/ITKv4-build -DANTs_SOURCE_DIR=$HOME/ANTs -DANTs_LIBRARY_DIR=$HOME/ANTS-BUILD/lib && make -j2 && ctest --verbose