forked from topology-tool-kit/ttk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
100 lines (95 loc) · 3.07 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
branches:
only:
- stable
dist: trusty
sudo: required
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- cmake
- qt4-dev-tools
- libboost-all-dev
- g++-6
- python2.7
- libopenmpi-dev
- libvtk6-dev
- libpq-dev
- doxygen
git:
depth: 3
# Test the build with VTK, ParaView and different combinations of
# the TTK build options
matrix:
include:
# Just base code
- env:
- TTK_BUILD_VTK_WRAPPERS=OFF
- TTK_BUILD_PARAVIEW_PLUGINS=OFF
- TTK_BUILD_STANDALONE_APPS=OFF
- TTK_ENABLE_KAMIKAZE=OFF
- TTK_ENABLE_MPI=OFF
- TTK_ENABLE_OPENMP=OFF
# Base code + OpenMP
- env:
- TTK_BUILD_VTK_WRAPPERS=ON
- TTK_BUILD_PARAVIEW_PLUGINS=OFF
- TTK_BUILD_STANDALONE_APPS=OFF
- TTK_ENABLE_KAMIKAZE=OFF
- TTK_ENABLE_MPI=OFF
- TTK_ENABLE_OPENMP=ON
# Base code + VTK + OpenMP + APPS + DOC
- env:
- TTK_BUILD_DOCUMENTATION=ON
- TTK_BUILD_VTK_WRAPPERS=ON
- TTK_BUILD_PARAVIEW_PLUGINS=OFF
- TTK_BUILD_STANDALONE_APPS=ON
- TTK_ENABLE_KAMIKAZE=OFF
- TTK_ENABLE_MPI=OFF
- TTK_ENABLE_OPENMP=ON
# # Base code, VTK wrappers, apps, ParaView plugins
# - env:
# - TTK_BUILD_VTK_WRAPPERS=ON
# - TTK_BUILD_PARAVIEW_PLUGINS=ON
# - TTK_BUILD_STANDALONE_APPS=ON
# - TTK_ENABLE_KAMIKAZE=OFF
# - TTK_ENABLE_MPI=OFF
# - TTK_ENABLE_OPENMP=ON
# # Base code, VTK wrappers, ParaView plugins
# - env:
# - TTK_BUILD_PARAVIEW_PLUGINS=ON
# - TTK_BUILD_STANDALONE_APPS=ON
# - TTK_BUILD_STANDALONE_APPS=ON
# - TTK_ENABLE_KAMIKAZE=OFF
# - TTK_ENABLE_MPI=OFF
# - TTK_ENABLE_OPENMP=ON
before_install:
- export CC=gcc-6
- export CXX=g++-6
- mkdir ext && cd ext
- wget "https://cmake.org/files/v3.9/cmake-3.9.2-Linux-x86_64.sh"
- chmod +x ./cmake-3.9.2-Linux-x86_64.sh
- printf "y\ny" | ./cmake-3.9.2-Linux-x86_64.sh > /dev/null
- export PATH=`pwd`/cmake-3.9.2-Linux-x86_64/bin/:$PATH
- ../.travis-setup-dependencies.sh
- export ParaView_DIR=`pwd`/ParaView-v5.4.0/install/lib/cmake/paraview-5.4/
- cd ../
# fixes broken vtk package in trusty
- sudo ln -sf /usr/lib/x86_64-linux-gnu/libpq.so.5 /usr/lib/libpq.so
script:
- mkdir build
- cd build
- cmake
-DCMAKE_INSTALL_PREFIX=../install
-DTTK_BUILD_DOCUMENTATION=$TTK_BUILD_DOCUMENTATION
-DTTK_BUILD_VTK_WRAPPERS=$TTK_BUILD_VTK_WRAPPERS
-DTTK_BUILD_PARAVIEW_PLUGINS=$TTK_BUILD_PARAVIEW_PLUGINS
-DTTK_BUILD_STANDALONE_APPS=$TTK_BUILD_STANDALONE_APPS
-DTTK_ENABLE_KAMIKAZE=$TTK_ENABLE_KAMIKAZE
-DTTK_ENABLE_MPI=$TTK_ENABLE_MPI
-DTTK_ENABLE_OPENMP=$TTK_ENABLE_OPENMP
-DParaView_DIR=$ParaView_DIR
..
- cmake --build . --target install