[travis-ci] Build forked-daapd in the latest Ubuntu LTS docker image
This commit is contained in:
parent
7bd12bb317
commit
f3cb20543b
52
.travis.yml
52
.travis.yml
|
@ -1,33 +1,39 @@
|
||||||
|
# Builds forked-daapd in the latest Ubuntu LTS docker container
|
||||||
|
# Configuration based on https://romanvm.pythonanywhere.com/post/using-docker-travis-continuous-integration-25/
|
||||||
|
|
||||||
language: c
|
language: c
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- CFG="--disable-verification"
|
- SH="docker exec -t ubuntu-lts bash -c" CFG=""
|
||||||
- CFG="--enable-lastfm --disable-verification"
|
- SH="docker exec -t ubuntu-lts bash -c" CFG="--enable-lastfm --disable-verification"
|
||||||
- CFG="--enable-spotify --disable-verification"
|
- SH="docker exec -t ubuntu-lts bash -c" CFG="--enable-spotify --disable-verification"
|
||||||
- CFG="--enable-chromecast --disable-verification"
|
- SH="docker exec -t ubuntu-lts bash -c" CFG="--enable-chromecast --disable-verification"
|
||||||
- CFG="--with-pulseaudio --disable-verification"
|
- SH="docker exec -t ubuntu-lts bash -c" CFG="--with-pulseaudio --disable-verification"
|
||||||
|
|
||||||
script:
|
|
||||||
- autoreconf -fi
|
|
||||||
- ./configure $CFG
|
|
||||||
- make
|
|
||||||
- make clean
|
|
||||||
- scan-build --status-bugs -disable-checker deadcode.DeadStores make
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add -
|
- docker run -d --name ubuntu-lts -v $(pwd):/travis -w /travis ubuntu:latest tail -f /dev/null
|
||||||
- sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/jessie.list
|
- docker ps
|
||||||
- sudo apt-get -qq update
|
|
||||||
- sudo apt-get install -y build-essential clang git autotools-dev autoconf libtool gettext gawk gperf antlr3 libantlr3c-dev libconfuse-dev libunistring-dev libsqlite3-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev libasound2-dev libmxml-dev libgcrypt11-dev libavahi-client-dev zlib1g-dev libevent-dev libplist-dev libcurl4-openssl-dev libjson-c-dev libspotify-dev libgnutls-dev libprotobuf-c0-dev libpulse-dev cmake
|
install:
|
||||||
- wget -q -O - https://github.com/warmcat/libwebsockets/archive/v2.0.3.tar.gz | tar -xvzf -
|
- $SH "apt-get -qq update"
|
||||||
- mkdir ./libwebsockets-2.0.3/build
|
- $SH "apt-get install -y wget gnupg2"
|
||||||
- cd ./libwebsockets-2.0.3/build
|
- $SH "wget -q -O - https://apt.mopidy.com/mopidy.gpg | apt-key add -"
|
||||||
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
|
- $SH "wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/stretch.list"
|
||||||
- make
|
- $SH "apt-get -qq update"
|
||||||
- sudo make install
|
- $SH "apt-get install -y build-essential clang clang-tools git autotools-dev autoconf libtool gettext gawk gperf antlr3 libantlr3c-dev libconfuse-dev libunistring-dev libsqlite3-dev libavcodec-dev libavformat-dev libavfilter-dev libswscale-dev libavutil-dev libasound2-dev libmxml-dev libgcrypt20-dev libavahi-client-dev zlib1g-dev libevent-dev libplist-dev libsodium-dev libcurl4-openssl-dev libjson-c-dev libprotobuf-c-dev libpulse-dev libwebsockets-dev libgnutls28-dev libspotify-dev"
|
||||||
- cd ../..
|
|
||||||
|
script:
|
||||||
|
- $SH "autoreconf -fi"
|
||||||
|
- $SH "./configure $CFG"
|
||||||
|
- $SH "make"
|
||||||
|
- $SH "make clean"
|
||||||
|
- $SH "scan-build --status-bugs -disable-checker deadcode.DeadStores make"
|
||||||
|
|
||||||
# Disable email notification
|
# Disable email notification
|
||||||
notifications:
|
notifications:
|
||||||
|
|
Loading…
Reference in New Issue