mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Instead generate it as a pre-build step. It can't be generated as part of the CMake build process because MSVC changes the PATH so that another convert.exe conflicts with imagemagick's.
122 lines
4.2 KiB
YAML
122 lines
4.2 KiB
YAML
os: Visual Studio 2015
|
|
|
|
version: "{build}-{branch}"
|
|
|
|
configuration: Release
|
|
|
|
cache:
|
|
- node_modules
|
|
- bower_components
|
|
- C:\projects\boost_1_61_0\boost
|
|
- C:\projects\boost_1_61_0\stage\lib
|
|
|
|
environment:
|
|
access_token:
|
|
secure: yoODjVeYw01Vg2idJgxMBOkyII/TO3yb6OZfxtzBh/F5z3ZTDW6CHBOiH4AyiX7Y
|
|
bintray_token:
|
|
secure: u234T2688DZmz4JH5+0iAHcUcL2fEIGculb8655bn4B1q7GckhplsitzgEbv3NFc
|
|
|
|
install:
|
|
- choco install -y doxygen.portable InnoSetup inkscape imagemagick.tool
|
|
- python -m pip install sphinx breathe sphinx_rtd_theme
|
|
- npm install
|
|
- .\node_modules\.bin\bower install
|
|
- ps: .\scripts\appveyor\install_boost.ps1
|
|
|
|
before_build:
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
- ps: mkdir build
|
|
- set PATH=C:\ProgramData\chocolatey\lib\imagemagick.tool\tools;%PATH%;C:\Program Files\Inkscape
|
|
- node scripts\create_ico.js
|
|
- cd build
|
|
- cmake .. -G "Visual Studio 14 2015" -DBOOST_ROOT="C:\projects\boost_1_61_0"
|
|
|
|
build:
|
|
verbosity: minimal
|
|
project: 'c:\projects\loot\build\LOOT.sln'
|
|
|
|
test_script:
|
|
- cd %APPVEYOR_BUILD_FOLDER%\build\%CONFIGURATION%
|
|
- tests.exe --gtest_output=xml:tests.xml
|
|
- api-tests.exe --gtest_output=xml:api-tests.xml
|
|
|
|
after_test:
|
|
- cd %APPVEYOR_BUILD_FOLDER%
|
|
- C:\Python27\Scripts\sphinx-build -b html docs build\docs\html
|
|
- set PATH=%PATH%;C:\cygwin\bin\
|
|
- node scripts\potomo.js
|
|
- node scripts\archive.js
|
|
- ps: $env:GIT_DESCRIBE = ((git describe --tags --long) | Out-String) -replace "`n|`r", ""
|
|
- ps: scripts\appveyor\build_installer.ps1
|
|
|
|
artifacts:
|
|
- path: build\loot_$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH).7z
|
|
name: LOOT
|
|
- path: build\loot-api_$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH).7z
|
|
name: API
|
|
- path: build\metadata-validator_$(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH).7z
|
|
name: metadata-validator
|
|
- path: build\LOOT Installer.exe
|
|
name: installer
|
|
|
|
deploy:
|
|
- provider: BinTray
|
|
username: wrinklyninja
|
|
api_key:
|
|
secure: u234T2688DZmz4JH5+0iAHcUcL2fEIGculb8655bn4B1q7GckhplsitzgEbv3NFc
|
|
subject: wrinklyninja
|
|
repo: loot
|
|
package: LOOT
|
|
version: $(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH)
|
|
publish: true
|
|
artifact: LOOT
|
|
|
|
- provider: BinTray
|
|
username: wrinklyninja
|
|
api_key:
|
|
secure: u234T2688DZmz4JH5+0iAHcUcL2fEIGculb8655bn4B1q7GckhplsitzgEbv3NFc
|
|
subject: wrinklyninja
|
|
repo: loot
|
|
package: LOOT_API
|
|
version: $(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH)
|
|
publish: true
|
|
artifact: API
|
|
|
|
- provider: BinTray
|
|
username: wrinklyninja
|
|
api_key:
|
|
secure: u234T2688DZmz4JH5+0iAHcUcL2fEIGculb8655bn4B1q7GckhplsitzgEbv3NFc
|
|
subject: wrinklyninja
|
|
repo: loot
|
|
package: metadata-validator
|
|
version: $(GIT_DESCRIBE)_$(APPVEYOR_REPO_BRANCH)
|
|
publish: true
|
|
artifact: metadata-validator
|
|
|
|
- provider: GitHub
|
|
tag: $(APPVEYOR_REPO_TAG_NAME)
|
|
release: LOOT v$(APPVEYOR_REPO_TAG_NAME)
|
|
description: |
|
|
Requires Windows 7 or later and the [MSVC 2015 x86 redistributable](http://download.microsoft.com/download/9/a/2/9a2a7e36-a8af-46c0-8a78-a5eb111eefe2/vc_redist.x86.exe), and [7-Zip](http://www.7-zip.org/) to extract the archives.
|
|
|
|
## Change Logs
|
|
- [Application](https://loot.readthedocs.io/en/$(APPVEYOR_REPO_TAG_NAME)/app/changelog.html)
|
|
- [API](https://loot.readthedocs.io/en/$(APPVEYOR_REPO_TAG_NAME)/api/changelog.html)
|
|
- [Metadata Syntax](https://loot.readthedocs.io/en/$(APPVEYOR_REPO_TAG_NAME)/metadata/changelog.html)
|
|
|
|
*Note: The `metadata-validator.tar.xz` file below contains a Linux binary. It won't work on Windows computers.*
|
|
auth_token:
|
|
secure: SecSfg5+S0OUzmC+kKixshqNDrRDj2uRYx58AAiZ1IDYTvQbPGRqEYCWZ9jbPd3h
|
|
artifact: LOOT,API,metadata-validator,installer
|
|
draft: false
|
|
on:
|
|
appveyor_repo_tag: true
|
|
|
|
on_success:
|
|
- ps: scripts\appveyor\delete_old_artifacts.ps1
|
|
- ps: scripts\appveyor\update_masterlist_branches.ps1
|
|
|
|
on_finish:
|
|
- ps: (New-Object System.Net.WebClient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", "$($env:APPVEYOR_BUILD_FOLDER)\build\$($env:CONFIGURATION)\tests.xml")
|
|
- ps: (New-Object System.Net.WebClient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", "$($env:APPVEYOR_BUILD_FOLDER)\build\$($env:CONFIGURATION)\api-tests.xml")
|