forked from Kitware/kwiver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (64 loc) · 1.76 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
#Travis CI configuration for KWIVER
# See http://travis-ci.org/Kitware/kwiver/
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
- libproj-dev
- libgl1-mesa-dev
- libxt-dev
- libatlas-base-dev
- python2.7-dev
script:
- export PATH=$HOME/deps/bin:$PATH
- mkdir build
- cd build
# Travis needs help finding libomp (OpenMP) with Clang builds
- export LD_LIBRARY_PATH=$(if [[ $CXX == "clang++" ]]; then echo -n '/usr/local/clang/lib'; fi)
- cmake -DCMAKE_C_COMPILER=$C_COMPILER
-DCMAKE_CXX_COMPILER=$CXX_COMPILER
-DCMAKE_INSTALL_PREFIX=$HOME/install
-Dfletch_DIR=/opt/kitware/fletch/share/cmake/
-DKWIVER_ENABLE_ARROWS=ON
-DKWIVER_ENABLE_CERES=ON
-DKWIVER_ENABLE_C_BINDINGS=ON
-DKWIVER_ENABLE_DOCS=OFF
-DKWIVER_ENABLE_FFMPEG=ON
-DKWIVER_ENABLE_GDAL=ON
-DKWIVER_ENABLE_LOG4CXX=OFF
-DKWIVER_ENABLE_LOG4CPLUS=ON
-DKWIVER_ENABLE_OPENCV=ON
-DKWIVER_ENABLE_PROJ=ON
-DKWIVER_ENABLE_PROCESSES=ON
-DKWIVER_ENABLE_PYTHON=ON
-DKWIVER_ENABLE_SPROKIT=ON
-DKWIVER_ENABLE_TESTS=ON
-DKWIVER_ENABLE_TOOLS=ON
-DKWIVER_ENABLE_TRACK_ORACLE=ON
-DKWIVER_ENABLE_VISCL=OFF
-DKWIVER_ENABLE_VXL=ON
-DKWIVER_USE_BUILD_TREE=ON
../
- make -j2
- make install
- ctest