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++.
|
|
|
|
#
|
2019-08-25 22:06:30 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- app_id=pvr.octonet
|
|
|
|
|
2016-11-04 11:02:23 +01:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
2019-08-25 22:06:30 +02:00
|
|
|
dist: xenial
|
2016-11-04 11:02:23 +01:00
|
|
|
sudo: required
|
|
|
|
compiler: gcc
|
|
|
|
- os: linux
|
2019-08-25 22:06:30 +02:00
|
|
|
dist: xenial
|
2016-11-04 11:02:23 +01:00
|
|
|
sudo: required
|
|
|
|
compiler: clang
|
|
|
|
- os: osx
|
2019-08-25 22:06:30 +02:00
|
|
|
osx_image: xcode10.2
|
2016-11-04 11:02:23 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# 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/..
|
2019-04-21 17:40:25 +02:00
|
|
|
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
|
2019-08-25 22:06:30 +02:00
|
|
|
- cd ${app_id} && mkdir build && cd build
|
|
|
|
- mkdir -p definition/${app_id}
|
|
|
|
- echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt
|
|
|
|
- cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=$TRAVIS_BUILD_DIR/.. -DADDONS_DEFINITION_DIR=$TRAVIS_BUILD_DIR/build/definition -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
|