-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
84 lines (76 loc) · 1.97 KB
/
Copy path.travis.yml
File metadata and controls
84 lines (76 loc) · 1.97 KB
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
dist: focal # Ubuntu 20.04 LTS
sudo: required
language: cpp
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-9
- cmake
- cmake-data
- lcov
- build-essential
- libgtk2.0-dev
- pkg-config
- libavcodec-dev
- libavformat-dev
- libswscale-dev
- python3-dev
- python3-numpy
- libtbb2
- libtbb-dev
- libjpeg-dev
- libpng-dev
- libtiff-dev
- libdc1394-22-dev
env:
- COMPILER=g++-9
- OPENCV_VERSION=3.4.5
before_install:
- pip install --user cpp-coveralls
install:
# OpenCV installation
- git clone --branch ${OPENCV_VERSION} --depth 1 https://github.com/opencv/opencv.git
- git clone --branch ${OPENCV_VERSION} --depth 1 https://github.com/opencv/opencv_contrib.git
- cd opencv
- mkdir build
- cd build
- cmake -D CMAKE_BUILD_TYPE=RELEASE
-D BUILD_EXAMPLES=OFF
-D BUILD_opencv_apps=OFF
-D BUILD_DOCS=OFF
-D BUILD_PERF_TESTS=OFF
-D BUILD_TESTS=OFF
-D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules
-D CMAKE_INSTALL_PREFIX=/usr/local
-D ENABLE_FAST_MATH=ON
-D WITH_TBB=ON
..
- make -j$(nproc)
- sudo make install
- sudo ldconfig
- cd ../..
# Download YOLO weights
- cd models
- wget --no-check-certificate https://pjreddie.com/media/files/yolov3.weights
- cd ..
script:
- export CXX=$COMPILER
- mkdir build
- cd build
- cmake -DCOVERAGE=ON -DCMAKE_BUILD_TYPE=Debug ../
- make -j$(nproc)
- test/cpp-test
after_success:
- coveralls --root .. -E ".*external.*" -E ".*CMakeFiles.*" -E ".*test/.*.cpp.*"
notifications:
email: false
cache:
directories:
- opencv/build
- opencv_contrib