forked from dirkvdb/ffmpegthumbnailer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (38 loc) · 1.87 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
language: cpp
os:
- linux
compiler:
- gcc
- clang
env:
matrix:
- BUILD_TYPE=Debug
- BUILD_TYPE=Release
global:
secure: "0N2Bw0qdLIoX0fW8/SHMobrA6oup/gd5373SwtyA//nP3HVNJpgpnVI8iyZ0ztIlStcWO1tB39XowUFTxT2jGSMM0Xliw501WjIIbaECb6QCkUl1tHJ2NmI7aD36gZcbcAzdTbjab5SJ5yLZR4Barr+zrIQiChu7Ggcg4SIltRs="
before_install:
- echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.6 main" | sudo tee -a /etc/apt/sources.list
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu precise main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -qq
install:
- sudo apt-get -qq install build-essential libpng-dev libjpeg-dev
- if [ "$CXX" = "g++" ]; then sudo apt-get -qq --allow-unauthenticated install gcc-4.9 g++-4.9; export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [ "$CXX" = "clang++" ]; then sudo apt-get -qq --allow-unauthenticated install clang-3.6; export CXX="clang++-3.6" CC="clang-3.6"; fi
- wget http://ffmpeg.org/releases/ffmpeg-3.1.3.tar.bz2
- tar xf ffmpeg-3.1.3.tar.bz2
- cd ffmpeg-3.1.3 && ./configure --prefix=/usr --disable-static --enable-shared --disable-avdevice --disable-doc --disable-htmlpages --disable-manpages --disable-programs --disable-encoders --disable-muxers --enable-swscale --disable-yasm --enable-protocol=file --enable-protocol=http --enable-iconv && make -j4 && sudo make install
- cd ..
script:
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_STATIC=ON -DENABLE_SHARED=ON -DENABLE_GIO=ON -DENABLE_THUMBNAILER=ON .
- make -j4
- CTEST_OUTPUT_ON_FAILURE=1 make test
addons:
coverity_scan:
project:
name: "dirkvdb/ffmpegthumbnailer"
description: "Build submitted via Travis CI"
notification_email: dirk.vdb@gmail.com
build_command_prepend: "cmake ."
build_command: "make -j4"
branch_pattern: coverity_scan