forked from OpenVisualCloud/SVT-VP9
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (50 loc) · 1.24 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
language: c
dist: xenial
addons:
apt:
packages:
- cmake
- yasm
homebrew:
packages:
- yasm
jobs:
include:
# General Linux build job
- name: Build
script:
- cd Build/linux
- ./build.sh release
# General macOS build job
- name: macOS build
os: osx
script:
- cd Build/linux
- ./build.sh release
# Coveralls test job
- name: Coveralls
before_install:
- pip install --user cpp-coveralls
script:
- cd Build/linux
- ./build.sh release
after_success:
- coveralls
# FFmpeg interation build
- name: FFmpeg patch
script:
# Build and install SVT-VP9
- cd $TRAVIS_BUILD_DIR
- cd Build
- cmake ..
- make -j$(nproc)
- sudo make install
# Apply SVT-VP9 plugin and enable libsvtvp9 to FFmpeg
- git clone https://github.com/FFmpeg/FFmpeg ffmpeg
- cd ffmpeg
- git checkout release/4.1
- git apply $TRAVIS_BUILD_DIR/ffmpeg_plugin/0001-Add-ability-for-ffmpeg-to-run-svt-vp9.patch
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
- export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig
- ./configure --enable-libsvtvp9
- make --quiet -j$(nproc)