-
Notifications
You must be signed in to change notification settings - Fork 95
/
.travis.yml
30 lines (30 loc) · 923 Bytes
/
.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
language: cpp
os:
- linux
- osx
- windows
dist:
- bionic
osx_image:
- xcode11.3
env:
- OPENCV_BRANCH=master
- OPENCV_BRANCH=3.4
cache:
directories:
- ${TRAVIS_BUILD_DIR}/opencv
before_script:
- rmdir opencv || true
- if [ ! -d opencv ]; then git clone --single-branch --branch ${OPENCV_BRANCH} https://github.com/opencv/opencv.git; fi
- pushd opencv
- mkdir -p build
- cd build
- cmake .. -DBUILD_LIST=core,imgproc,imgcodecs,calib3d,highgui,features2d,flann -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=../install
- cmake --build . --parallel 8 --target install --config Release
- popd
script:
- mkdir -p build
- cd build
- export OPENCV_CONFIG=$(dirname $(find ${TRAVIS_BUILD_DIR}/opencv/install -name OpenCVConfig.cmake | head -n1))
- cmake .. -DBUILD_DemoBRIEF=ON -DOpenCV_DIR=${OPENCV_CONFIG}
- cmake --build . --config Release