aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorh.udo <hudokkow@gmail.com>2016-02-08 21:44:23 +0000
committerh.udo <hudokkow@gmail.com>2016-02-10 23:55:55 +0000
commit87b64fe4b52820ec90d16849a0f6b39ef088b39f (patch)
tree4a7804265fb6b829e40e6bcdb5c33e1186b9c939 /.travis.yml
parent0ff33e9b02da6e65b77f8a98716fb3dfbda8704a (diff)
[travis] Add add-ons specific builds
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml87
1 files changed, 54 insertions, 33 deletions
diff --git a/.travis.yml b/.travis.yml
index 0f0c37fc43..766101f500 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,24 +15,25 @@
language: generic
-# - cpp
-# - python
-
-# python:
-# - "2.7"
# Define the build matrix
#
# Travis defaults to building on Ubuntu Precise when building on Linux. We need Trusty in order to get up
# to date versions of cmake and g++.
#
-matrix:
- fast_finish: true
- include:
- - os: linux
- dist: trusty
- sudo: required
- compiler: gcc
+os: linux
+dist: trusty
+sudo: required
+compiler: gcc
+
+env:
+ - BUILD=Kodi
+ - ADDONS=adsp
+ - ADDONS=audiodecoder
+ - ADDONS=audioencoder
+ - ADDONS=pvr
+ - ADDONS=screensaver
+ - ADDONS=visualization
# Prepare system
#
@@ -44,11 +45,12 @@ before_install:
#
# Install team-xbmc/xbmc-ppa-build-depends for some dependencies and ppa:wsnipex/vaapi for libda-dev 1.6.0.
# Stupid libda-dev 1.3.0 does not work on Trusty.
-#
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- sudo add-apt-repository -y ppa:team-xbmc/xbmc-ppa-build-depends
- && sudo add-apt-repository -y ppa:wsnipex/vaapi
- && sudo apt-get update -qq; fi
+
+ - if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD" == "Kodi" ]]; then
+ sudo add-apt-repository -y ppa:team-xbmc/xbmc-ppa-build-depends &&
+ sudo add-apt-repository -y ppa:wsnipex/vaapi &&
+ sudo apt-get update -qq;
+ fi
# Install dependencies
#
@@ -58,15 +60,16 @@ install:
# Linux dependencies
#
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- sudo apt-get install -qq automake autopoint build-essential cmake curl dcadec-dev default-jre gawk gdc
- gettext git-core gperf libasound2-dev libass-dev libbz2-dev libcap-dev libcdio-dev libcrossguid-dev libcurl3
- libcurl4-openssl-dev libdbus-1-dev libfontconfig-dev libegl1-mesa-dev libfreetype6-dev libfribidi-dev libgif-dev
- libiso9660-dev libjpeg-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmodplug-dev libmysqlclient-dev libnfs-dev
- libogg-dev libpcre3-dev libplist-dev libpng-dev libpulse-dev libsdl2-dev libsmbclient-dev libsqlite3-dev libssh-dev
- libssl-dev libtag1-dev libtinyxml-dev libtool libudev-dev libusb-dev libva-dev libvdpau-dev libvorbis-dev
- libvorbisenc2 libxml2-dev libxmu-dev libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libyajl-dev mesa-utils
- nasm pmount python-dev python-imaging python-sqlite swig unzip uuid-dev yasm zip zlib1g-dev; fi
+ - if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD" == "Kodi" ]]; then
+ sudo apt-get install -qq automake autopoint build-essential cmake curl dcadec-dev default-jre gawk gdc
+ gettext git-core gperf libasound2-dev libass-dev libbz2-dev libcap-dev libcdio-dev libcrossguid-dev libcurl3
+ libcurl4-openssl-dev libdbus-1-dev libfontconfig-dev libegl1-mesa-dev libfreetype6-dev libfribidi-dev libgif-dev
+ libiso9660-dev libjpeg-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmodplug-dev libmysqlclient-dev libnfs-dev
+ libogg-dev libpcre3-dev libplist-dev libpng-dev libpulse-dev libsdl2-dev libsmbclient-dev libsqlite3-dev libssh-dev
+ libssl-dev libtag1-dev libtinyxml-dev libtool libudev-dev libusb-dev libva-dev libvdpau-dev libvorbis-dev
+ libvorbisenc2 libxml2-dev libxmu-dev libxrandr-dev libxrender-dev libxslt1-dev libxt-dev libyajl-dev mesa-utils
+ nasm pmount python-dev python-imaging python-sqlite swig unzip uuid-dev yasm zip zlib1g-dev;
+ fi
# Prepare builds
#
@@ -74,17 +77,35 @@ before_script:
# Linux
#
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
- cd $TRAVIS_BUILD_DIR/
- && ./bootstrap
- && ./configure; fi
+ - if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD" == "Kodi" ]]; then
+ cd $TRAVIS_BUILD_DIR/ &&
+ ./bootstrap &&
+ ./configure;
+ fi
+ - if [[ "$BUILD" != "Kodi" ]] && [[ "$ADDONS" == "adsp" || "$ADDONS" == "audiodecoder" || "$ADDONS" == "audioencoder" ||
+ "$ADDONS" == "pvr" || "$ADDONS" == "screensaver" || "$ADDONS" == "visualization" ]]; then
+ cd $TRAVIS_BUILD_DIR/project/cmake/addons &&
+ mkdir -p build &&
+ cd build/ &&
+ cmake ../bootstrap -DCMAKE_BUILD_TYPE=Debug &&
+ make -j3;
+ fi
# Actually build
#
script:
- - make -j3
- - make testsuite
- - ./kodi-test
+ - if [[ "$BUILD" == "Kodi" ]]; then
+ make -j3 &&
+ make testsuite &&
+ ./kodi-test;
+ fi
+ - if [[ "$BUILD" != "Kodi" ]] && [[ "$ADDONS" == "adsp" || "$ADDONS" == "audiodecoder" || "$ADDONS" == "audioencoder" ||
+ "$ADDONS" == "pvr" || "$ADDONS" == "screensaver" || "$ADDONS" == "visualization" ]]; then
+ cd $TRAVIS_BUILD_DIR/ &&
+ mkdir -p build &&
+ cmake -DADDONS_TO_BUILD="$ADDONS".* -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../addons $TRAVIS_BUILD_DIR/project/cmake/addons &&
+ make -j3;
+ fi
# Disable annoying emails
#