Files
libloot-python/appveyor.yml
T

81 lines
2.8 KiB
YAML
Raw Normal View History

2018-12-12 19:33:21 +00:00
os: Visual Studio 2017
2016-08-13 14:30:29 +01:00
version: "{build}-{branch}"
2018-05-02 11:38:25 +01:00
configuration: RelWithDebInfo
2016-08-13 14:30:29 +01:00
platform:
- Win32
- x64
environment:
bintray_auth_token:
2018-08-12 21:47:02 +01:00
secure: PgsEA6TjHVf718zMnK7J/fT1hUAVNKBeWhpYgYaeCyeZk37VT4Ics6j7+B7ElLEr
github_auth_token:
secure: yDqT5l/e5MntbW99V6+MHlfFgNv+UIogFfeyUVqtFk5lFRB/dAraLLwKCLl6y+DH
2018-12-13 08:12:04 +00:00
matrix:
- PYTHON_VERSION: 2.7
- PYTHON_VERSION: 3.7
install:
2018-11-07 16:58:07 +00:00
- ps: (New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/Ortham/ci-scripts/2.0.0/delete_old_bintray_versions.py', "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py")
2016-08-13 14:30:29 +01:00
before_build:
2018-12-13 08:12:04 +00:00
- ps: $env:PYTHON_DIRECTORY_VERSION=$env:PYTHON_VERSION.Replace(".", "")
2016-08-13 14:30:29 +01:00
- cd %APPVEYOR_BUILD_FOLDER%
- ps: mkdir build
- cd build
- ps: |
if ($env:PLATFORM -eq 'Win32') {
2018-12-13 08:12:04 +00:00
cmake .. -G "Visual Studio 15 2017" -DPYTHON_EXECUTABLE="C:\Python${env:PYTHON_DIRECTORY_VERSION}\python.exe"
} else {
cmake .. -G "Visual Studio 15 2017" -A x64 -DPYTHON_EXECUTABLE="C:\Python${env:PYTHON_DIRECTORY_VERSION}-x64\python.exe"
}
2016-08-13 14:30:29 +01:00
build:
verbosity: minimal
project: 'c:\projects\libloot-python\build\libloot-python.sln'
2016-08-13 14:30:29 +01:00
test_script:
2019-06-16 13:16:35 +01:00
- cd %APPVEYOR_BUILD_FOLDER%\build
- ctest -C %CONFIGURATION%
2016-08-13 14:30:29 +01:00
after_test:
2016-09-18 17:30:22 +01:00
- cd %APPVEYOR_BUILD_FOLDER%\build
2018-05-02 11:38:25 +01:00
- cpack -C %CONFIGURATION%
2016-08-13 14:30:29 +01:00
- ps: $env:GIT_DESCRIBE = ((git describe --tags --long --always) | Out-String) -replace "`n|`r", ""
- ps: $env:PACKAGE_VERSION = $env:GIT_DESCRIBE + "_" + ($env:APPVEYOR_REPO_BRANCH.replace("/", "-"))
2019-10-20 15:24:37 +01:00
- ps: $env:ARCHITECTURE = $env:PLATFORM.substring($env:PLATFORM.length - 2)
2016-08-13 14:30:29 +01:00
artifacts:
- path: build\package\libloot-python-$(PACKAGE_VERSION)-python$(PYTHON_VERSION)-win$(ARCHITECTURE).zip
name: libloot-python
2016-08-13 14:30:29 +01:00
deploy:
- provider: BinTray
username: wrinklyninja
api_key:
2018-08-12 21:47:02 +01:00
secure: PgsEA6TjHVf718zMnK7J/fT1hUAVNKBeWhpYgYaeCyeZk37VT4Ics6j7+B7ElLEr
subject: loot
repo: snapshots
package: libloot-python
version: $(PACKAGE_VERSION)
2016-08-13 14:30:29 +01:00
publish: true
artifact: libloot-python
2016-12-15 20:45:38 +00:00
- provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
release: libloot-python v$(APPVEYOR_REPO_TAG_NAME)
2016-12-15 20:45:38 +00:00
description: |
2018-12-12 19:33:21 +00:00
Requires Windows 7 or later and the [MSVC 2017 x86 redistributable](https://download.visualstudio.microsoft.com/download/pr/749aa419-f9e4-4578-a417-a43786af205e/d59197078cc425377be301faba7dd87a/vc_redist.x86.exe), and [7-Zip](http://www.7-zip.org/) to extract the archive.
2016-12-15 20:45:38 +00:00
auth_token:
2018-08-12 21:47:02 +01:00
secure: yDqT5l/e5MntbW99V6+MHlfFgNv+UIogFfeyUVqtFk5lFRB/dAraLLwKCLl6y+DH
artifact: libloot-python
2016-12-15 20:45:38 +00:00
draft: false
on:
appveyor_repo_tag: true
on_success:
- ps: python "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py" -g loot/libloot-python -b loot/snapshots/libloot-python -u wrinklyninja -k $env:bintray_auth_token -t $env:github_auth_token -n 30