forked from TUWien/ReadModules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (39 loc) · 1.96 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
language: c++
sudo: required
dist: trusty
os:
- linux
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- lcov
before_script:
- if [ "$TRAVIS_OS_NAME" = "linux" ];then MODULE_CMAKE_ARGS="-DENABLE_BINARIZATION=true -DENABLE_WRITERIDENTIFICATION=true -DENABLE_LAYOUT=true -DENABLE_PAGE_VIS=true -DENABLE_SKEW=true"; fi
# Linux dependencies
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-add-repository -y ppa:beineri/opt-qt551-trusty; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-add-repository -y ppa:sfiel/opencv-read; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -y --no-install-recommends debhelper cdbs libopencv-dev libopencv-stitching-dev libopencv-imgcodecs-dev libopencv-flann-dev libopencv-features2d-dev libopencv-calib3d-dev libopencv-hdf-dev libopencv-reg-dev libopencv-shape-dev libopencv-xobjdetect-dev libopencv-xfeatures2d-dev libopencv-ximgproc-dev libopencv-highgui-dev cmake qt55tools qt55svg qt55base libtbb-dev libwebp-dev libbz2-dev libv4l-dev libexiv2-dev libraw-dev libhdf5-dev; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install --yes doxygen graphviz; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then CMAKE_ARGS="-DCMAKE_PREFIX_PATH=/opt/qt55/bin/ -Dnomacs_DIR=~/build/TUWien/ReadModules/build/nomacs-build -DReadFramework_DIR=~/build/TUWien/ReadModules/build/readframework-build -DENABLE_QUAZIP=OFF"; fi
- git clone --depth 1 http://github.com/nomacs/nomacs nomacs
- git clone --depth 1 http://github.com/TUWien/ReadFramework ReadFramework
- mkdir build
- cd build
- mkdir nomacs-build
- mkdir readframework-build
script:
- cd nomacs-build
- cmake $CMAKE_ARGS ../../nomacs/ImageLounge
- make -j8
- cd ../readframework-build
- cmake $CMAKE_ARGS ../../ReadFramework
- make -j8
- cd ..
- cmake $CMAKE_ARGS $MODULE_CMAKE_ARGS ../.
- make -j8 VERBOSE=1