-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
70 lines (64 loc) · 2.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Travis CI build script for Kodi's binary add-ons
#
# HOW TO USE
# -----------------
# 1. Add this file to your binary add-on repository
# 2. Set "addon_id" to your binary add-on id (see below)
# 3. Login at https://travis-ci.org/ (you can use your Github account if you want)
# 4. Go to your account name and select accounts
# 5. Enable the builds by pressing the corresponding button
# 5. Commit this file to your repository and the build will start
#
# Optional: Adding build badges (build status image)
# - Add this line to your DEADME.md:
# https://travis-ci.org/{org}/{addon-id}.svg?branch={branch})](https://travis-ci.org/{org}/{addon-id})
# Replace {org} with your account name, {addon-id} with the repository name and {branch} with the Github branch.
#
#
# TODO:
# - Add support for creating add-on packaging on Git tag pushes
# - Add package uploads to bintray for deployment
# - Add support for a native os add-on package install file (.deb, .rpm, .apk ...)
# - Add support for Raspberry Pi, Android and IMX6
language: cpp
env:
global:
- addon_id=adsp.biquad.filters
#
# 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
- cd $addon_id && mkdir build && cd build
- cmake -DADDONS_TO_BUILD=$addon_id -DADDON_SRC_PREFIX=../../../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
script: make