-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
42 lines (35 loc) · 868 Bytes
/
.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
os: linux
arch:
- amd64
- ppc64le
language: cpp
sudo: false
cache:
- apt
- ccache
addons:
apt:
packages:
- libqt4-dev
- libxml++2.6-dev
- libboost-dev
- libboost-filesystem-dev
- zlib1g-dev
compiler:
- clang
- gcc
env:
matrix:
- IGNORE_QT=false SHARED=true
- IGNORE_QT=false SHARED=false
- IGNORE_QT=true SHARED=true
- IGNORE_QT=true SHARED=false
before_install:
- mkdir ../build
- cd ../build
script:
- cmake -D CMAKE_CXX_FLAGS="-W -Wall -Wno-narrowing" -D BUILD_SHARED_LIBS:BOOL=$SHARED -D IGNORE_QT:BOOL=$IGNORE_QT ../CiftiLib
- export LD_LIBRARY_PATH=$(if [[ $CXX == "clang++" ]]; then echo -n '/usr/local/clang/lib'; fi)
- make -j 4
- example/xmlinfo ../CiftiLib/example/data/ones.dscalar.nii
- ctest