mirror of
				https://github.com/DigitalDevices/pvr.octonet.git
				synced 2025-03-01 10:53:09 +00:00 
			
		
		
		
	Add appveyor build instructions
Automated builds for Windows. Signed-off-by: Julian Scheel <julian@jusst.de>
This commit is contained in:
		
							
								
								
									
										35
									
								
								appveyor.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								appveyor.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,35 @@
 | 
			
		||||
version: BuildNr.{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 ("{0}-{1}-{2}" -f $env:appveyor_repo_branch, $commit, $timestamp)
 | 
			
		||||
 | 
			
		||||
# clone directory
 | 
			
		||||
clone_folder: c:\projects\pvr.octonet
 | 
			
		||||
 | 
			
		||||
# fetch repository as zip archive
 | 
			
		||||
shallow_clone: true                 # default is "false"
 | 
			
		||||
 | 
			
		||||
environment:
 | 
			
		||||
  ADDON: pvr.octonet
 | 
			
		||||
 | 
			
		||||
  matrix:
 | 
			
		||||
    #- GENERATOR: "Visual Studio 14"
 | 
			
		||||
    #  CONFIG: Debug
 | 
			
		||||
 | 
			
		||||
    - GENERATOR: "Visual Studio 14"
 | 
			
		||||
      CONFIG: Release
 | 
			
		||||
 | 
			
		||||
build_script:
 | 
			
		||||
  - cd ..
 | 
			
		||||
  - set ROOT=%cd%
 | 
			
		||||
  - git clone --depth=1 https://github.com/xbmc/xbmc.git
 | 
			
		||||
  - mkdir xbmc\project\cmake\addons\addons\pvr.octonet
 | 
			
		||||
  - echo pvr.octonet https://github.com/DigitalDevices/pvr.octonet master > xbmc\project\cmake\addons\addons\pvr.octonet\pvr.octonet.txt
 | 
			
		||||
  - cd %ADDON%
 | 
			
		||||
  - mkdir build
 | 
			
		||||
  - cd build
 | 
			
		||||
  # Must use absolute path for cmake to build depends correctly
 | 
			
		||||
  - cmake -G "%GENERATOR%" -DADDONS_TO_BUILD=%ADDON% -DCMAKE_BUILD_TYPE=%CONFIG% -DADDON_SRC_PREFIX=%ROOT% -DCMAKE_INSTALL_PREFIX=%ROOT%\xbmc\addons -DPACKAGE_ZIP=1 %ROOT%\xbmc\project\cmake\addons
 | 
			
		||||
  - cmake --build . --config %CONFIG%
 | 
			
		||||
		Reference in New Issue
	
	Block a user