This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
/
.travis.yml
49 lines (44 loc) · 1.67 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
language: cpp
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
before_install:
- eval "${MATRIX_EVAL}"
install:
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
sudo apt update
sudo apt install -y libopencv-dev libgflags-dev libgoogle-glog-dev libboost-all-dev yasm nasm
# ffmpeg
DIR_FFMPEG=$(mktemp -d) && cd ${DIR_FFMPEG}
curl -sLO https://ffmpeg.org/releases/ffmpeg-4.0.2.tar.bz2
tar -jx --strip-components=1 -f ffmpeg-4.0.2.tar.bz2
./configure --enable-nonfree --enable-gpl --disable-debug --disable-doc --enable-version3 --enable-shared --enable-postproc && make && sudo make install
# protobuf
DIR=$(mktemp -d) && cd ${DIR}
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.6.0/protobuf-all-3.6.0.tar.gz
tar -zx --strip-components=1 -f protobuf-all-3.6.0.tar.gz
./autogen.sh
./configure CXXFLAGS=-Wno-unused-variable && make && make check && sudo make install
sudo ldconfig
else
rvm install ruby-2.3.3
rvm --default use 2.3.3
brew update
brew install cmake glog gflags protobuf
brew install ffmpeg --with-gpl --with-version3 --with-nonfree --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-openssl --with-libspeex --with-libx264 --with-libx265
fi
before_script:
- echo $PWD && echo $TRAVIS_BUILD_DIR
- cd $TRAVIS_BUILD_DIR/apps/interactiveLive
script:
- echo $PWD && echo $TRAVIS_BUILD_DIR
- ./build.sh