rainmeter-python/appveyor.yml

84 lines
2.7 KiB
YAML
Raw Normal View History

2017-02-09 18:27:09 +00:00
version: '1.0.{build}'
2017-02-09 19:03:56 +00:00
skip_tags: true
2017-02-09 18:27:09 +00:00
2017-02-09 16:32:57 +00:00
environment:
matrix:
- PYTHON: "C:\\Python34"
BUILD_ENV: "Visual Studio 14"
2017-02-09 17:19:10 +00:00
BUILD_DIR: "x32"
ARCH: "x86"
2017-02-09 16:48:03 +00:00
BUILD_PLATFORM: "win32"
2017-02-09 17:29:42 +00:00
PYTHON_VERSION: "34"
2017-02-09 16:32:57 +00:00
- PYTHON: "C:\\Python34-x64"
BUILD_ENV: "Visual Studio 14 Win64"
2017-02-09 17:19:10 +00:00
BUILD_DIR: "x64"
ARCH: "x64"
2017-02-09 16:48:03 +00:00
BUILD_PLATFORM: "x64"
2017-02-09 17:29:42 +00:00
PYTHON_VERSION: "34-x64"
2017-02-09 16:32:57 +00:00
- PYTHON: "C:\\Python35"
BUILD_ENV: "Visual Studio 14"
2017-02-09 17:19:10 +00:00
BUILD_DIR: "x32"
ARCH: "x86"
2017-02-09 16:48:03 +00:00
BUILD_PLATFORM: "win32"
2017-02-09 17:29:42 +00:00
PYTHON_VERSION: "35"
2017-02-09 16:32:57 +00:00
- PYTHON: "C:\\Python35-x64"
BUILD_ENV: "Visual Studio 14 Win64"
2017-02-09 17:19:10 +00:00
BUILD_DIR: "x64"
ARCH: "x64"
2017-02-09 16:48:03 +00:00
BUILD_PLATFORM: "x64"
2017-02-09 17:29:42 +00:00
PYTHON_VERSION: "35-x64"
- PYTHON: "C:\\Python36"
BUILD_ENV: "Visual Studio 14"
BUILD_DIR: "x32"
ARCH: "x86"
BUILD_PLATFORM: "win32"
PYTHON_VERSION: "36"
- PYTHON: "C:\\Python36-x64"
BUILD_ENV: "Visual Studio 14 Win64"
BUILD_DIR: "x64"
ARCH: "x64"
BUILD_PLATFORM: "x64"
PYTHON_VERSION: "36-x64"
2017-02-09 16:32:57 +00:00
install:
2017-02-09 18:55:55 +00:00
# If there is a newer build queued for the same PR, cancel this one.
# The AppVeyor 'rollout builds' option is supposed to serve the same
# purpose but it is problematic because it tends to cancel builds pushed
# directly to master instead of just PR builds (or the converse).
# credits: JuliaLang developers.
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
2017-02-09 16:32:57 +00:00
- cmd: >-
git submodule update --init --recursive
build_script:
- cmd: |-
if not exist "%APPVEYOR_BUILD_FOLDER%\%BUILD_DIR%" mkdir "%APPVEYOR_BUILD_FOLDER%\%BUILD_DIR%"
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %ARCH%
2017-02-09 17:12:06 +00:00
2017-02-09 16:48:03 +00:00
set "INCLUDE=%PYTHON%\include;%INCLUDE%"
set "LIB=%PYTHON%\libs;%LIB%"
2017-02-09 16:32:57 +00:00
2017-02-09 16:49:36 +00:00
echo %INCLUDE%
echo %LIB%
2017-02-09 16:49:36 +00:00
msbuild RainmeterPython.vcxproj /p:configuration=release /p:platform=%BUILD_PLATFORM% /p:useenv=true /v:d
2017-02-09 16:48:03 +00:00
2017-02-09 16:36:03 +00:00
mkdir release-dlls
2017-02-09 17:19:10 +00:00
xcopy "%APPVEYOR_BUILD_FOLDER%\%BUILD_DIR%\release\*.dll" .\release-dlls\ /I
2017-02-09 16:32:57 +00:00
2017-02-09 17:29:42 +00:00
deploy:
release: Rainmeter-Python-v$(appveyor_build_version)
2017-02-09 18:27:09 +00:00
description: 'Automated Build Release'
2017-02-09 17:29:42 +00:00
provider: GitHub
auth_token:
secure: olbMvHpayGgqvdAdimUIJQ5W33juPyQ3jU+UgIEr81pZq8qt5S+U+crMr1kmEWD6
2017-02-09 18:27:09 +00:00
artifact: RainmeterPython-v$(appveyor_build_version)-Python$(PYTHON_VERSION)
2017-02-09 16:32:57 +00:00
artifacts:
2017-02-09 16:36:03 +00:00
- path: release-dlls
2017-02-09 18:27:09 +00:00
name: RainmeterPython-v$(appveyor_build_version)-Python$(PYTHON_VERSION)