-
Notifications
You must be signed in to change notification settings - Fork 83
/
.travis.yml
67 lines (62 loc) · 2.05 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
#Travis CI configuration for KWIVER
# See http://travis-ci.org/Kitware/kwiver/
dist: bionic
language: cpp
matrix:
include:
- compiler: gcc
env:
- C_COMPILER=gcc
- CXX_COMPILER=g++
- compiler: clang
env: # default clang is version 7.0.0
- C_COMPILER=clang
- CXX_COMPILER=clang++
cache:
directories:
- $HOME/deps
- /opt/kitware
before_script:
- sudo apt-get install -y libproj-dev libgl1-mesa-dev libxt-dev libatlas-base-dev python3-venv
- bash .travis/install-deps.sh
- sudo apt install python3-pip
- python3 -m pip install --upgrade pip
- pip3 install -q -U setuptools
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)
- export LD_LIBRARY_PATH=/opt/kitware/fletch/lib:$LD_LIBRARY_PATH
- $HOME/cmake-install/bin/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_SERIALIZE_JSON=ON
-DKWIVER_ENABLE_SERIALIZE_PROTOBUF=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
-DPython3_EXECUTABLE=/opt/pyenv/shims/python3
../
- make -j2
- make install
- . ./setup_KWIVER.sh
- $HOME/cmake-install/bin/ctest