2016-11-04 11:02:23 +01:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
|
|
|
compiler: clang
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode7.3
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode6.1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Some of the OS X images don't have cmake, contrary to what people
|
|
|
|
# on the Internet say
|
|
|
|
#
|
|
|
|
before_install:
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which cmake || brew update ; fi
|
|
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then which cmake || brew install cmake ; fi
|
|
|
|
|
|
|
|
#
|
|
|
|
# The addon source is automatically checked out in $TRAVIS_BUILD_DIR,
|
|
|
|
# we'll put the Kodi source on the same level
|
|
|
|
#
|
|
|
|
before_script:
|
|
|
|
- cd $TRAVIS_BUILD_DIR/..
|
|
|
|
- git clone --depth=1 https://github.com/xbmc/xbmc.git
|
2017-05-26 10:58:35 +02:00
|
|
|
- mkdir -p xbmc/cmake/addons/addons/pvr.octonet
|
|
|
|
- echo "pvr.octonet https://github.com/DigitalDevices/pvr.octonet master" > xbmc/cmake/addons/addons/pvr.octonet/pvr.octonet.txt
|
2016-11-04 11:02:23 +01:00
|
|
|
- cd $TRAVIS_BUILD_DIR && mkdir build && cd build
|
2017-05-26 10:58:35 +02:00
|
|
|
- cmake -DADDONS_TO_BUILD=pvr.octonet -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$TRAVIS_BUILD_DIR/../xbmc/addons -DPACKAGE_ZIP=1 $TRAVIS_BUILD_DIR/../xbmc/cmake/addons
|
2016-11-04 11:02:23 +01:00
|
|
|
|
|
|
|
script: make
|