[SCM] kodi-pvr-hts/master: [CI] add appveyor win32 building
tiber-guest at users.alioth.debian.org
tiber-guest at users.alioth.debian.org
Fri Nov 4 23:23:37 UTC 2016
The following commit has been merged in the master branch:
commit 13494824f47594d5da99c6e3654621a07fe772c4
Author: Martijn Kaijser <mcm.kaijser at gmail.com>
Date: Sat Feb 6 13:09:35 2016 +0100
[CI] add appveyor win32 building
diff --git a/.travis.yml b/.travis.yml
index 2da6d59..cdf47a2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,10 @@ language: cpp
# Linux. We need Trusty in order to get up to date versions of
# cmake and g++.
#
+env:
+ global:
+ - app_id=pvr.hts
+
matrix:
include:
- os: linux
@@ -37,7 +41,7 @@ before_install:
before_script:
- cd $TRAVIS_BUILD_DIR/..
- git clone --depth=1 https://github.com/xbmc/xbmc.git
- - cd pvr.hts && mkdir build && cd build
- - cmake -DADDONS_TO_BUILD=pvr.hts -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
+ - cd ${app_id} && mkdir build && cd build
+ - cmake -DADDONS_TO_BUILD=${app_id} -DADDON_SRC_PREFIX=../.. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
-script: make
+script: make
\ No newline at end of file
diff --git a/README.md b/README.md
index 36f94d8..b5fd524 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,12 @@
-[![Build Status](https://travis-ci.org/kodi-pvr/pvr.hts.svg?branch=master)](https://travis-ci.org/kodi-pvr/pvr.hts)
-[![Coverity Scan Build Status](https://scan.coverity.com/projects/5120/badge.svg)](https://scan.coverity.com/projects/5120)
-
# Tvheadend PVR addon for Kodi
This is a [Kodi] (http://kodi.tv) PVR addon for connecting to a [tvheadend](https://tvheadend.org) backend.
+#### CI Testing
+* Tarvis-CI for OS X, iOS, Linux [![Build Status](https://travis-ci.org/kodi-pvr/pvr.hts.svg?branch=master)](https://travis-ci.org/kodi-pvr/pvr.hts)
+* AppVeyor for Windows [![Build status](https://ci.appveyor.com/api/projects/status/om02uriby21nek4g?svg=true)](https://ci.appveyor.com/project/MartijnKaijser/pvr-hts-hr8p4)
+* Code analyses for Linux [![Coverity Scan Build Status](https://scan.coverity.com/projects/5120/badge.svg)](https://scan.coverity.com/projects/5120)
+
## Build instructions
When building the addon you have to use the correct branch depending on which version of Kodi you're building against.
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..3ce07b9
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,48 @@
+version: .{build}
+
+init:
+- ps: $commit = $env:appveyor_repo_commit.SubString(0,7)
+- ps: $timestamp = $env:appveyor_repo_commit_timestamp.SubString(0,10)
+- ps: Update-AppveyorBuild -Version "$env:appveyor_repo_branch-$commit-$timestamp"
+
+
+#- ps: Update-AppveyorBuild -Version "$env:appveyor_repo_branch-$env:appveyor_repo_commit-$env:appveyor_repo_commit_timestamp"
+
+#branches:
+# only:
+# - master
+
+# clone directory
+clone_folder: c:\projects\pvr.hts
+
+# fetch repository as zip archive
+shallow_clone: true # default is "false"
+
+install:
+ - ps: wget https://s3.amazonaws.com/biibinaries/thirdparty/cmake-3.0.2-win32-x86.zip -OutFile cmake.zip
+ - cmd: echo "Unzipping cmake..."
+ - cmd: 7z x cmake.zip -o"C:\Program Files (x86)\" -y > nul
+ - cmd: set PATH=%PATH:CMake 2.8\bin=%;C:\Program Files (x86)\cmake-3.0.2-win32-x86\bin
+ - cmd: cmake --version
+ - cmd: del cmake.zip
+
+environment:
+ app_id: pvr.hts
+
+ matrix:
+ #- GENERATOR: "Visual Studio 12 2013"
+ #CONFIG: Debug
+
+ - GENERATOR: "Visual Studio 12 2013"
+ CONFIG: Release
+
+build_script:
+ - call "%VS120COMNTOOLS%..\..\VC\bin\vcvars32.bat"
+ - set cur_dir=%cd%
+ - cd ..
+ - git clone --depth=1 https://github.com/xbmc/xbmc.git
+ - cd %app_id%
+ - mkdir build
+ - cd build
+ - cmake -G "NMake Makefiles" -DADDONS_TO_BUILD=%app_id% -DCMAKE_BUILD_TYPE=%CONFIG% -DADDON_SRC_PREFIX=../.. -DCMAKE_INSTALL_PREFIX=../../xbmc/addons -DPACKAGE_ZIP=1 ../../xbmc/project/cmake/addons
+ - cmake --build "%cur_dir%\build" --target %app_id%
\ No newline at end of file
--
kodi-pvr-hts packaging
More information about the pkg-multimedia-commits
mailing list