ci: Use custom container for Travis builds

Temporary solution. For now, this builds using a container image
based on openSUSE Tumbleweed with the current FFmpeg release.
More containers will be added (at least with git snapshots of FFmpeg
and libass), and Travis will eventually be replaced with something
we have more control over.
This commit is contained in:
Martin Herkt 2018-06-25 19:16:42 +02:00
parent 4a0fcdfbd8
commit 7428272f93
No known key found for this signature in database
GPG Key ID: C24B9CD04DC6AE7F
2 changed files with 26 additions and 22 deletions

View File

@ -2,19 +2,20 @@ language: c
os:
- linux
#- osx
services:
- docker
sudo: required
env:
matrix:
- LIBAV=ffmpeg-git
- LIBAV=libav-git
- CONTAINER=registry.opensuse.org/home/lachs0r/images/containers/mpv-ci:latest CI_SCRIPT=ci/build-tumbleweed.sh
global:
# Coverity token
- secure: "H21mSRlMhk4BKS0xHZvCFGJxteCP0hRVUxTuNfM2Z9HBsyutuLEYMtViLO86VtM+Tqla3xXPzUdS4ozLwI72Ax/5ZUDXACROj73yW6QhFB5D6rLut12+FjqC7M33Qv2hl0xwgNBmR5dsm1ToP37+Wn+ecJQNvN8fkTXF+HVzOEw="
# Travis token for mpv.io
- secure: "nlTVLJK6kRhtXvhKCoJ3YdFGHuKaq/eHowfPw25hqRWuBOZd+HjHY5KIYjV7SxuKFDpJE4GpNcvA3Q31nsqomxpkLYgrwjg6TSazN7ZP+x85ZgV1QGFebrPfGm2n5UR5CAPAwFoeF3pZheLi4bajVzwq1fWW+x3grS188P9OZso="
compiler:
- clang
- gcc
branches:
only:
@ -22,23 +23,10 @@ branches:
- ci
- coverity_scan
matrix:
exclude:
- os: osx
env: LIBAV=libav-git
- os: osx
env: LIBAV=ffmpeg-git
- os: osx
compiler: gcc
- os: linux
compiler: clang
- env: LIBAV=libav-git
before_install: TOOLS/travis-deps libass-stable $LIBAV
before_install:
- docker pull $CONTAINER
script:
- ./bootstrap.py
- ./waf configure
- ./waf build
- docker run -v $TRAVIS_BUILD_DIR:/build $CONTAINER /bin/sh -c "cd /build && $CI_SCRIPT"
after_failure: cat ./build/config.log
after_script: TOOLS/travis-rebuild-website

16
ci/build-tumbleweed.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
set -e
./bootstrap.py
./waf configure \
--enable-cdda \
--enable-dvdread \
--enable-dvdnav \
--enable-libmpv-shared \
--enable-zsh-comp \
--enable-manpage-build \
--enable-libarchive \
--enable-dvbin \
--enable-vulkan \
--enable-shaderc
./waf build --verbose