forked from gnebehay/CppMT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (39 loc) · 3.25 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
os: linux
dist: xenial
language: cpp
cache: ccache
compiler:
- gcc
env:
global:
- MAKEFLAGS="-j 2"
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq g++ cmake git ccache build-essential pkg-config libgtk2.0-dev libgtk-3-dev libtbb-dev python-dev python-numpy python-scipy libjasper-dev libjpeg-dev libpng-dev libtiff-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libv4l-dev libavresample-dev libavresample-dev libgphoto2-dev gtk+-3.0-dev libeigen3-dev libunicap2-dev libunicap-dev libunicap-dev libopenblas-dev libopenblas-dev liblapack-dev libatlas-dev liblapacke-dev libclblas-dev libatlas-base-dev libgstreamer1.0-dev ocl-icd-opencl-dev libmrpt-dev autopoint gfortran-multilib distcc dh-make distccmon-gnome distcc-pump dmucs libmpfr-dev libbonobo2-bin gnome-mime-data gamin libgnomevfs2-bin libgnomevfs2-extra
before_script:
- mkdir /home/travis/build/src
- mkdir /home/travis/build/src/opencv_contrib
- cd /home/travis/build/src/opencv_contrib
- git clone https://github.com/opencv/opencv_contrib.git .
- git checkout master
- mkdir /home/travis/build/src/ocvsrc
- cd /home/travis/build/src/ocvsrc
- git clone https://github.com/opencv/opencv.git .
- git checkout master
- cd /home/travis/build
- mkdir /home/travis/build/bin
- mkdir /home/travis/build/bin/lib
- mkdir /home/travis/build/bin/lib/opencv
- cd /home/travis/build/bin/lib/opencv
- cmake ../../../src/ocvsrc -DCMAKE_INSTALL_PREFIX=/home/travis/build -DCMAKE_SOURCE_DIR=/home/travis/build/src/ocvsrc -DCMAKE_BINARY_DIR=/home/travis/build/bin/lib/opencv -DOPENCV_EXTRA_MODULES_PATH=/home/travis/build/src/opencv_contrib/modules -DOPENCV_ENABLE_NONFREE=ON -DENABLE_FAST_MATH=ON -DWITH_EIGEN=1 -DWITH_TBB=ON -DENABLE_BUILD_HARDENING=OFF -DWITH_MATLAB=ON -DWITH_GTK=ON -DWITH_GTK_2_X=ON -DBUILD_LIST=core,features2d,highgui,improc,calib3d,imgcodecs,videoio,video,opencv_aruco,xfeatures2d -DBUILD_opencv_dnn=OFF -DBUILD_opencv_aruco=OFF -DBUILD_opencv_bgsegm=OFF -DBUILD_opencv_bioinspired=OFF -DBUILD_opencv_ccalib=OFF -DBUILD_opencv_cnn_3dobj=OFF -DBUILD_opencv_cvv=OFF -DBUILD_opencv_datasets=OFF -DBUILD_opencv_dnn_objdetect=OFF -DBUILD_opencv_dnns_easily_fooled=OFF -DBUILD_opencv_dpm=OFF -DBUILD_opencv_face=OFF -DBUILD_opencv_fuzzy=OFF -DBUILD_opencv_freetype=OFF -DBUILD_opencv_hdf=OFF -DBUILD_opencv_line_descriptor=OFF -DBUILD_opencv_matlab=OFF -DBUILD_opencv_ovis=OFF -DBUILD_opencv_plot=OFF -DBUILD_opencv_rgbd=OFF -DBUILD_opencv_reg=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_sfm=OFF -DBUILD_opencv_structured_light=OFF -DBUILD_opencv_surface_matching=OFF -DBUILD_opencv_text=OFF -DBUILD_opencv_tracking=OFF -DBUILD_opencv_ximgproc=OFF -DBUILD_opencv_xobjdetect=OFF -DBUILD_opencv_xphoto=OFF
- make
- make install
- mkdir /home/travis/build/bin/lib/cmt
- cd /home/travis/build/bin/lib/cmt
- cmake /home/travis/build/louiscyphre/cmt -DCMAKE_INSTALL_PREFIX=/home/travis/build -DOpenCV_DIR=/home/travis/build/bin/lib/opencv -DCMAKE_SOURCE_DIR=/home/travis/build/louiscyphre/cmt -DCMAKE_BINARY_DIR=/home/travis/build/bin/lib/cmt -DROOT_INCLUDE_DIR=/home/travis/build/bin/lib/cmt -DDEPENDENCY_PROJECT=ON
after_failure:
- rm -rf /home/travis/build/src
- rm -rf /home/travis/build/bin
- rm -rf /home/travis/build/louiscyphre
script:
- make