forked from Kitware/TeleSculptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (42 loc) · 925 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
43
44
45
46
47
48
49
#Travis CI configuration for MAP-Tk
# See http://travis-ci.org/Kitware/maptk/
sudo: false
language: cpp
matrix:
include:
- compiler: gcc
env:
- C_COMPILER=gcc-4.8
- CXX_COMPILER=g++-4.8
- compiler: clang
env: # default clang is version 3.4
- C_COMPILER=clang
- CXX_COMPILER=clang++
cache:
directories:
- $HOME/deps
- /opt/kitware
before_script:
- bash .travis/install-deps.sh
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- libgl1-mesa-dev
- libxt-dev
- libqt4-dev
script:
- export PATH=$HOME/deps/bin:$PATH
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=$C_COMPILER
-DCMAKE_CXX_COMPILER=$CXX_COMPILER
-DCMAKE_INSTALL_PREFIX=$HOME/install
-DMAPTK_ENABLE_GUI:BOOL=ON
-DMAPTK_ENABLE_TESTING:BOOL=ON
../
- make -j2
- make install
- ctest