-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (45 loc) · 1.11 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
language:
- cpp
branches:
only:
- development
notifications:
email:
on_success: never
on_fail: always
matrix:
include:
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
# works on Precise and Trusty
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env:
- MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
- os: osx
osx_image: xcode8
before_install:
- git submodule update --init
script:
- WD="$PWD"
- ITK_BLD_DIR="$WD/External/ITK/build"
- mkdir -p $ITK_BLD_DIR && cd $ITK_BLD_DIR && pwd
- cmake .. -DCMAKE_CXX_FLAGS="-std=c++11" -DBUILD_TESTING=OFF -DITK_BUILD_DEFAULT_MODULES=OFF -DModule_ITKIOBruker=ON
- make -j 2
- cd $WD && mkdir build && cd build
- cmake -DITK_DIR=$ITK_BLD_DIR $WD/
- make nanconvert_version # For some unknown reason, this does not trigger in the Linux build
- make -j 2