-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (47 loc) · 1.55 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
language: cpp
dist: xenial
matrix:
include:
# - os: linux
# env:
# - MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
# - os: linux
# env:
# - MATRIX_EVAL="CC=clang-7 && CXX=clang++-7"
- os: osx
compiler: gcc
osx_image: xcode10.1
- os: osx
compiler: clang
osx_image: xcode10.1
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
eval "${MATRIX_EVAL}"
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository -y ppa:jonathonf/ffmpeg-4
sudo add-apt-repository -y 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo add-apt-repository -y ppa:grochefort/opencv
sudo apt-get update -qq
if [[ "$CC" == "gcc-8" ]]; then
sudo apt-get install -yqq g++-8 libstdc++-8-dev
fi
if [[ "$CC" == "clang-7" ]]; then
sudo apt-get install -yqq clang-7 libc++-7-dev libc++abi-7-dev
fi
sudo apt-get install -yqq libopencv-dev libopencv-highgui-dev libopencv-video-dev libopencv-imgproc-dev libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavresample-dev libavutil-dev libswresample-dev libswscale-dev
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install ffmpeg opencv
fi
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX ..
script: make VERBOSE=1