-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
60 lines (57 loc) · 1.14 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
os: linux
language: cpp
compiler:
- gcc
before_script:
- apt-get update -y && \
apt-get install -y \
--no-install-recommends apt-utils \
build-essential \
automake \
bison \
curl \
coreutils \
file \
gettext \
make \
openssl \
libssl-dev \
libgcrypt11-dev \
libcurl4-openssl-dev \
zlib1g \
zlib1g-dev \
expat \
libexpat1-dev \
patch \
perl \
unzip \
wget \
yasm \
lftp \
zip \
dos2unix \
ghostscript
#
# Install opencv and opencv_contrib
#
cd /tmp && \
git clone https://github.com/opencv/opencv.git && \
cd opencv && \
git checkout 3.4.3 && \
cd .. && \
git clone https://github.com/opencv/opencv_contrib.git && \
cd opencv_contrib && \
git checkout 3.4.3 && \
cd ../opencv && \
mkdir build && cd build && \
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D BUILD_SHARED_LIBS=ON \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules .. && \
make -j"$(nproc --all)" && \
make install
script:
- mkdir build
- cd build
- cmake ..
- cmake --build .