forked from Kagami/SVT-AV1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (65 loc) · 1.94 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
# Environment variables
language: c
cache: ccache
os: linux
dist: focal
git:
depth: false
quiet: true
submodules: false
addons:
apt:
sources:
- sourceline: ppa:ubuntu-toolchain-r/test
packages:
- &native_deps cmake yasm gcc-10 g++-10 ninja-build
env:
global:
- build_type=Release CC="ccache gcc-10" CXX="ccache g++-10" CCACHE_DIR=$HOME/.ccache CFLAGS=-Werror
# Default scripts
install:
- "sudo chown -R travis: $CCACHE_DIR"
- sort -u /proc/cpuinfo
- cmake --version
- $CC --version
- for url in raw.githubusercontent.com/OpenVisualCloud/SVT-AV1-Resources/master randomderp.com; do curl -LO https://$url/video.tar.gz && break; done
- tar xf video.tar.gz
script:
- &base_script |
mkdir -p "$TRAVIS_BUILD_DIR/Build/linux/${build_type:=Release}"
cd "$TRAVIS_BUILD_DIR/Build/linux/$build_type"
cmake "$TRAVIS_BUILD_DIR" -GNinja -DCMAKE_BUILD_TYPE="$build_type" -DCMAKE_INSTALL_PREFIX=/usr
sudo -E ninja install
cd "$TRAVIS_BUILD_DIR"
- SvtAv1EncApp --preset 0 -i akiyo_cif.y4m -n 3
- SvtAv1EncApp --preset 8 -i akiyo_cif.y4m -n 150
- SvtAv1EncApp --preset 0 -i Chimera-Aerial_480x264_2997fps_10bit_420_150frames.y4m -n 3
- SvtAv1EncApp --preset 8 -i Chimera-Aerial_480x264_2997fps_10bit_420_150frames.y4m -n 150
before_cache:
- "sudo chown -R travis: $CCACHE_DIR"
- ccache -c
- ccache -s
# Build matrix
jobs:
fast_finish: true
include:
# Multiple CPU Architectures
- name: Arm64 GCC build
arch: arm64
- name: PowerPC GCC build
arch: ppc64le
- name: IBM Z GCC build
arch: s390x
# Valgrind on Linux
- name: Valgrind
env: build_type=debug
addons:
apt:
sources:
- sourceline: ppa:ubuntu-toolchain-r/test
packages:
- *native_deps
- valgrind
script:
- *base_script
- travis_wait 60 valgrind --error-exitcode=1 -- SvtAv1EncApp --preset 4 -i akiyo_cif.y4m -n 20 -b test1.ivf