mirror of
https://github.com/DigitalDevices/pvr.octonet.git
synced 2023-10-10 13:36:57 +02:00
Travis changes for cpp17 and debian
This commit is contained in:
parent
81520e3104
commit
5a228cc805
43
.travis.yml
43
.travis.yml
@ -1,11 +1,7 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
#
|
#
|
||||||
# Define the build matrix
|
# Define the builds to get up to date versions of cmake and gcc
|
||||||
#
|
|
||||||
# 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++.
|
|
||||||
#
|
#
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
@ -14,26 +10,45 @@ env:
|
|||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: xenial
|
dist: bionic
|
||||||
sudo: required
|
sudo: required
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
- os: linux
|
- os: linux
|
||||||
dist: xenial
|
dist: bionic
|
||||||
sudo: required
|
sudo: required
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
- os: linux
|
||||||
|
dist: bionic
|
||||||
|
sudo: required
|
||||||
|
compiler: gcc
|
||||||
|
env: DEBIAN_BUILD=true
|
||||||
|
- os: linux
|
||||||
|
dist: focal
|
||||||
|
sudo: required
|
||||||
|
compiler: gcc
|
||||||
|
env: DEBIAN_BUILD=true
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode10.2
|
osx_image: xcode10.2
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- if [[ $DEBIAN_BUILD == true ]]; then sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly; fi
|
||||||
|
- if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get update; fi
|
||||||
|
- if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get install fakeroot; fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# The addon source is automatically checked out in $TRAVIS_BUILD_DIR,
|
# The addon source is automatically checked out in $TRAVIS_BUILD_DIR,
|
||||||
# we'll put the Kodi source on the same level
|
# we'll put the Kodi source on the same level
|
||||||
#
|
#
|
||||||
before_script:
|
before_script:
|
||||||
- cd $TRAVIS_BUILD_DIR/..
|
- if [[ $DEBIAN_BUILD != true ]]; then cd $TRAVIS_BUILD_DIR/..; fi
|
||||||
- git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git
|
- if [[ $DEBIAN_BUILD != true ]]; then git clone --branch master --depth=1 https://github.com/xbmc/xbmc.git; fi
|
||||||
- cd ${app_id} && mkdir build && cd build
|
- if [[ $DEBIAN_BUILD != true ]]; then cd ${app_id} && mkdir build && cd build; fi
|
||||||
- mkdir -p definition/${app_id}
|
- if [[ $DEBIAN_BUILD != true ]]; then mkdir -p definition/${app_id}; fi
|
||||||
- echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt
|
- if [[ $DEBIAN_BUILD != true ]]; then echo ${app_id} $TRAVIS_BUILD_DIR $TRAVIS_COMMIT > definition/${app_id}/${app_id}.txt; fi
|
||||||
- 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
|
- if [[ $DEBIAN_BUILD != true ]]; then 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; fi
|
||||||
|
- if [[ $DEBIAN_BUILD == true ]]; then wget https://raw.githubusercontent.com/xbmc/xbmc/master/xbmc/addons/kodi-dev-kit/tools/debian-addon-package-test.sh && chmod +x ./debian-addon-package-test.sh; fi
|
||||||
|
- if [[ $DEBIAN_BUILD == true ]]; then sudo apt-get build-dep $TRAVIS_BUILD_DIR; fi
|
||||||
|
|
||||||
script: make
|
script:
|
||||||
|
- if [[ $DEBIAN_BUILD != true ]]; then make; fi
|
||||||
|
- if [[ $DEBIAN_BUILD == true ]]; then ./debian-addon-package-test.sh $TRAVIS_BUILD_DIR; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user