-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (76 loc) · 1.94 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
language: cpp
sudo: required
matrix:
include:
- dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'ppa:jonathonf/ffmpeg-3'
packages:
- g++-7
- cmake
- ninja-build
- libsdl2-dev
- libavutil-dev
- libavdevice-dev
- ffmpeg
- build-essential
- libgtk2.0-dev
- pkg-config
- libavcodec-dev
- libavformat-dev
- libswscale-dev
- libtbb2
- libtbb-dev
- libjpeg-dev
- libpng-dev
- libtiff-dev
- libjasper-dev
- libdc1394-22-dev
- libv4l-dev
- libxvidcore-dev
- libx264-dev
- unzip
- libjpeg8-dev
- libtiff5-dev
- libpng12-dev
- libgtk-3-dev
- libatlas-base-dev
update: true
before_install:
- wget https://github.com/opencv/opencv/archive/3.4.0.zip -O opencv-3.4.0.zip
- wget https://github.com/opencv/opencv_contrib/archive/3.4.0.zip -O opencv_contrib-3.4.0.zip
- unzip -q opencv-3.4.0.zip
- unzip -q opencv_contrib-3.4.0.zip
- cd opencv-3.4.0
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.4.0/modules -DOPENCV_ENABLE_NONFREE=True ..
- make
- sudo make install
- sudo ldconfig
- cd ../..
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: osx
osx_image: xcode10.2
addons:
homebrew:
packages:
- sdl2
- ninja
- cmake
- opencv
update: true
install:
eval "${MATRIX_EVAL}"
script:
- PROJECT_ROOT=pwd
- cat CMakeLists.txt
- mkdir -p tmp
- cd tmp
- cmake -G Ninja ..
- ninja install
- cd ..