-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
49 lines (49 loc) · 1.52 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
language: generic
addons:
apt:
packages:
- cmake
- libboost-all-dev
- libgoogle-glog-dev
- wget
- g++-5
sources:
- llvm-toolchain-precise-3.8
- ubuntu-toolchain-r-test
matrix:
include:
#- os: osx
#compiler: clang
#env: ITK_VERSION=v4.13.1
- os: linux
compiler: gcc
env: COMPILER_NAME=gcc CXX=g++-5 CC=gcc-5 ITK_VERSION=v4.13.1
cache:
- directories:
- $HOME/itk-v4.13.1-build
- $HOME/itk-v4.13.1
before_script:
- g++ --version
- export NUM_THREADS=4
- export GLOG_SOURCE_DIR=$HOME/glog
- export GLOG_BUILD_DIR=$HOME/glog-build
- cd $HOME
- git clone --branch v0.3.5 https://github.com/google/glog.git
- mkdir ${GLOG_BUILD_DIR}
- cd ${GLOG_BUILD_DIR}
- cmake ${GLOG_SOURCE_DIR} -DCMAKE_BUILD_TYPE=Release
- make --jobs=$NUM_THREADS --keep-going
- cd $HOME
- export ITK_SOURCE_DIR=$HOME/itk-${ITK_VERSION}
- export ITK_BUILD_DIR=${ITK_SOURCE_DIR}-build
- if ! test -e ${ITK_SOURCE_DIR}/CMakeLists.txt; then rm -fr $ITK_SOURCE_DIR; fi
- if ! test -e ${ITK_SOURCE_DIR}; then git clone --branch ${ITK_VERSION} https://github.com/InsightSoftwareConsortium/ITK.git ${ITK_SOURCE_DIR}; fi
- ls /home/travis/itk-v4.13.1
- if ! test -e ${ITK_BUILD_DIR}; then mkdir ${ITK_BUILD_DIR}; fi
- cd ${ITK_BUILD_DIR}
- cmake ${ITK_SOURCE_DIR} -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
- make --jobs=$NUM_THREADS --keep-going
- cd /home/travis/build/UCL/pet-rd-tools
- cmake . -DCMAKE_BUILD_TYPE=Release -DITK_DIR=${ITK_BUILD_DIR} -Dglog_DIR=${GLOG_BUILD_DIR}
script: cmake --build .