-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
141 lines (134 loc) · 4.71 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# Copyright - Benjamin Laugraud <[email protected]> - 2017
# http://www.montefiore.ulg.ac.be/~blaugraud
# http://www.telecom.ulg.ac.be/labgen
#
# This file is part of LaBGen-OF.
#
# LaBGen-OF is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# LaBGen-OF is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LaBGen-OF. If not, see <http://www.gnu.org/licenses/>.
language: cpp
cache:
directories:
- $HOME/opencv-3.3.0
- $HOME/opencv_contrib-3.3.0
matrix:
include:
- os: linux
compiler: g++
- os: osx
compiler: clang++
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
sudo apt-get update -qq;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]];
then
/usr/bin/yes | pip uninstall numpy;
brew update;
fi
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
sudo apt-get install -qq libboost-filesystem-dev
libboost-program-options-dev
libboost-system-dev
libavcodec54
libavcodec-dev
libavformat54
libavformat-dev
libavresample1
libavresample-dev
libavutil52
libavutil-dev
libswscale2
libswscale-dev
libtbb2
libtbb-dev
libjpeg-dev
libpng-dev
libtiff-dev
libjasper-dev
libeigen3-dev;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]];
then
brew install -v opencv;
fi
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
cd "$HOME";
if [[ -n "$(ls -A opencv-3.3.0)" ]];
then
echo "OpenCV 3.3 with contrib has been fetched from the cache";
cd opencv-3.3.0/build;
else
echo "Compiling and installing OpenCV 3.3 with contrib";
wget https://github.com/opencv/opencv/archive/3.3.0.tar.gz;
wget https://github.com/opencv/opencv_contrib/archive/3.3.0.tar.gz;
tar zxf 3.3.0.tar.gz;
tar zxf 3.3.0.tar.gz.1;
cd opencv-3.3.0;
mkdir build;
cd build;
cmake -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr/local
-DWITH_OPENCL=OFF
-DWITH_CUDA=OFF
-DWITH_VTK=OFF
-DWITH_MATLAB=OFF
-DBUILD_opencv_java=OFF
-DBUILD_opencv_python2=OFF
-DBUILD_opencv_python3=OFF
-DBUILD_TESTS=OFF
-DBUILD_PERF_TESTS=OFF
-DOPENCV_EXTRA_MODULES_PATH=$HOME/opencv_contrib-3.3.0/modules
-DBUILD_opencv_aruco=OFF
-DBUILD_opencv_bgsegm=OFF
-DBUILD_opencv_bioinspired=OFF
-DBUILD_opencv_ccalib=OFF
-DBUILD_opencv_cnn_3dobj=OFF
-DBUILD_opencv_contrib_world=OFF
-DBUILD_opencv_cvv=OFF
-DBUILD_opencv_datasets=OFF
-DBUILD_opencv_dnn=OFF
-DBUILD_opencv_dpm=OFF
-DBUILD_opencv_face=OFF
-DBUILD_opencv_freetype=OFF
-DBUILD_opencv_fuzzy=OFF
-DBUILD_opencv_hdf=OFF
-DBUILD_opencv_img_hash=OFF
-DBUILD_opencv_line_descriptor=OFF
-DBUILD_opencv_matlab=OFF
-DBUILD_opencv_phase_unwrapping=OFF
-DBUILD_opencv_plot=OFF
-DBUILD_opencv_reg=OFF
-DBUILD_opencv_rgbd=OFF
-DBUILD_opencv_saliency=OFF
-DBUILD_opencv_sfm=OFF
-DBUILD_opencv_stereo=OFF
-DBUILD_opencv_structured_light=OFF
-DBUILD_opencv_surface_matching=OFF
-DBUILD_opencv_text=OFF
-DBUILD_opencv_tracking=OFF
-DBUILD_opencv_xfeatures2d=OFF
-DBUILD_opencv_xobjdetect=OFF
-DBUILD_opencv_xphoto=OFF ..;
make -j4;
fi;
sudo make -j4 install;
cd "$TRAVIS_BUILD_DIR";
fi
script:
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..;
- make