forked from Kitware/TeleSculptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 890 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
#Travis CI configuration for TeleSculptor
# See http://travis-ci.org/Kitware/TeleSculptor/
dist: bionic
language: cpp
matrix:
include:
- compiler: gcc
env:
- C_COMPILER=gcc
- CXX_COMPILER=g++
- compiler: clang
env: # default clang is version 7.0
- C_COMPILER=clang
- CXX_COMPILER=clang++
cache:
directories:
- $HOME/deps
- /opt/kitware
before_script:
- sudo apt-get install -y libgl1-mesa-dev libxt-dev
- bash .travis/install-deps.sh
script:
- export PATH=$HOME/deps/bin:$PATH
- mkdir build
- cd build
- /opt/kitware/cmake/bin/cmake
-DCMAKE_C_COMPILER=$C_COMPILER
-DCMAKE_CXX_COMPILER=$CXX_COMPILER
-DCMAKE_INSTALL_PREFIX=$HOME/install
-DTELESCULPTOR_ENABLE_TESTING:BOOL=ON
-DTELESCULPTOR_SUPERBUILD:BOOL=OFF
../
- make -j2
- make install
- ctest