forked from strukturag/libde265
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
87 lines (82 loc) · 7.06 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
77
78
79
80
81
82
83
84
85
86
87
# stats available at
# https://travis-ci.org/strukturag/libde265/
language: cpp
compiler:
- gcc
env:
- HOST= WINE= DECODESTREAMS=
- HOST=i686-w64-mingw32 WINE=wine DECODESTREAMS=
- HOST=x86_64-w64-mingw32 WINE=wine64 DECODESTREAMS=
- HOST=arm-linux-gnueabihf WINE= DECODESTREAMS=
- HOST=cmake WINE= DECODESTREAMS=
- HOST= WINE= DECODESTREAMS=libde265-teststreams-fuzzing THREADING=
- HOST= WINE= DECODESTREAMS=libde265-teststreams-fuzzing THREADING=--single-threaded
- HOST= WINE= DECODESTREAMS=libde265-teststreams-nolf THREADING=
- HOST= WINE= DECODESTREAMS=libde265-teststreams-nolf THREADING=--single-threaded
- HOST= WINE= DECODESTREAMS=libde265-teststreams-sao THREADING=
- HOST= WINE= DECODESTREAMS=libde265-teststreams-sao THREADING=--single-threaded
- HOST= WINE= DECODESTREAMS=libde265-teststreams-tiles THREADING=
- HOST= WINE= DECODESTREAMS=libde265-teststreams-tiles THREADING=--single-threaded
- HOST= WINE= DECODESTREAMS=libde265-teststreams-tiles-nolf THREADING=
- HOST= WINE= DECODESTREAMS=libde265-teststreams-tiles-nolf THREADING=--single-threaded
- HOST= WINE= DECODESTREAMS=libde265-teststreams-weighted THREADING=
- HOST= WINE= DECODESTREAMS=libde265-teststreams-weighted THREADING=--single-threaded
- HOST= WINE= DECODESTREAMS=libde265-teststreams-wpp-nolf THREADING=
- HOST= WINE= DECODESTREAMS=libde265-teststreams-wpp-nolf THREADING=--single-threaded
matrix:
include:
- compiler: clang
env: HOST= WINE= DECODESTREAMS=
allow_failures:
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-fuzzing THREADING=
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-fuzzing THREADING=--single-threaded
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-nolf THREADING=
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-nolf THREADING=--single-threaded
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-sao THREADING=
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-sao THREADING=--single-threaded
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-tiles THREADING=
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-tiles THREADING=--single-threaded
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-tiles-nolf THREADING=
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-tiles-nolf THREADING=--single-threaded
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-weighted THREADING=
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-weighted THREADING=--single-threaded
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-wpp-nolf THREADING=
- env: HOST= WINE= DECODESTREAMS=libde265-teststreams-wpp-nolf THREADING=--single-threaded
before_install:
- sh -c "if [ ! -z '$DECODESTREAMS' ]; then sudo add-apt-repository -y ppa:strukturag/libde265; fi"
- sudo add-apt-repository -y ppa:kalakris/cmake
- sudo apt-get update -qq
- sh -c "if [ -z '$HOST' ]; then sudo apt-get install -qq valgrind libsdl-dev libqt4-dev libswscale-dev; fi"
- sh -c "if [ -z '$HOST' ] && [ -z '$DECODESTREAMS' ]; then sudo apt-get install -qq devscripts; fi"
- sh -c "if [ ! -z '$WINE' ]; then sudo apt-get install -qq wine; fi"
- sh -c "if [ '$WINE' = 'wine' ]; then sudo apt-get install -qq gcc-mingw-w64-i686 g++-mingw-w64-i686 binutils-mingw-w64-i686 mingw-w64-dev; fi"
- sh -c "if [ '$WINE' = 'wine64' ]; then sudo apt-get install -qq gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-dev; fi"
- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then sudo apt-get install -qq g++-arm-linux-gnueabihf gcc-arm-linux-gnueabihf qemu-user; fi"
- sh -c "if [ ! -z '$DECODESTREAMS' ]; then sudo apt-get install $DECODESTREAMS; fi"
- sudo apt-get install cmake
install:
- git clone https://github.com/strukturag/libde265-data.git
before_script:
- if [ "$HOST" != "cmake" ]; then ./autogen.sh; fi
- if [ ! -z "$HOST" ] && [ "$HOST" != "cmake" ]; then unset CC; fi
- if [ ! -z "$HOST" ] && [ "$HOST" != "cmake" ]; then unset CXX; fi
- if [ "$HOST" != "cmake" ]; then ./configure --host=$HOST; fi
- if [ "$HOST" = "cmake" ]; then cmake .; fi
script:
- sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then ./scripts/check_licenses.sh; fi"
- make
- sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then make dist && mkdir dist-test && cd dist-test && tar xzf ../libde265-*.tar.gz && cd libde265-* && ./configure && make; fi"
- sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then make dist && mkdir dist-cmake-test && cd dist-cmake-test && tar xzf ../libde265-*.tar.gz && cd libde265-* && cmake . && make; fi"
- sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then LD_LIBRARY_PATH=./libde265/.libs/ valgrind --tool=memcheck --quiet --error-exitcode=1 ./dec265/.libs/dec265 -q -c -f 100 ./libde265-data/IDR-only/paris-352x288-intra.bin; fi"
- sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then LD_LIBRARY_PATH=./libde265/.libs/ valgrind --tool=memcheck --quiet --error-exitcode=1 ./dec265/.libs/dec265 -t 4 -q -c -f 100 ./libde265-data/IDR-only/paris-352x288-intra.bin; fi"
- sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then LD_LIBRARY_PATH=./libde265/.libs/ valgrind --tool=memcheck --quiet --error-exitcode=1 ./dec265/.libs/dec265 -q -c -f 100 ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
- sh -c "if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then LD_LIBRARY_PATH=./libde265/.libs/ valgrind --tool=memcheck --quiet --error-exitcode=1 ./dec265/.libs/dec265 -t 4 -q -c -f 100 ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
- sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=/usr/lib/gcc/$HOST/4.6/ $WINE ./dec265/dec265.exe -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi"
- sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=/usr/lib/gcc/$HOST/4.6/ $WINE ./dec265/dec265.exe -t 4 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi"
- sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=/usr/lib/gcc/$HOST/4.6/ $WINE ./dec265/dec265.exe -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
- sh -c "if [ ! -z "$WINE" ]; then WINEPREFIX=`pwd`/$WINE WINEPATH=/usr/lib/gcc/$HOST/4.6/ $WINE ./dec265/dec265.exe -t 4 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi"
#- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -t 4 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin; fi"
- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
#- sh -c "if ( echo '$HOST' | grep -q '^arm' ); then LD_LIBRARY_PATH=`pwd`/libde265/.libs/ qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -t 4 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin; fi"
- sh -c "if [ ! -z '$DECODESTREAMS' ]; then python scripts/decodestreams.py $THREADING /var/lib/libde265-teststreams; fi"