ci: Add appveyor.yml

Enforce CRLF line endings so Windows users can actually edit using
notepad.

Build buildbot.xml ReleaseAll target with both VS2013 and VS2015.

Create 7zipped build similar to what the buildbot makes.
This commit is contained in:
Jonathan Li 2015-10-08 23:35:07 +01:00
parent 52be531b8e
commit d9591b819d
1 changed files with 35 additions and 0 deletions

35
appveyor.yml Normal file
View File

@ -0,0 +1,35 @@
# Static build version - changing the version dynamically means you can't
# just click from github to see how things are progressing until the build has
# finished, which could be a bit annoying.
version: 1.{build}-{branch}
environment:
matrix:
- platform: Win32
target: ReleaseAll
visualstudio_string: vs2015
- platform: Win32
VisualStudioVersion: 12.0
target: ReleaseAll
visualstudio_string: vs2013
init:
# Use CRLF line endings on Windows so users can just use Notepad.
- git config --global core.autocrlf true
build_script:
- msbuild buildbot.xml /m /t:%target% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- ps: $env:gitrev = git describe --tags
- ps: $env:my_version = "$env:gitrev-$env:appveyor_repo_branch-$env:appveyor_build_number"
- type NUL > bin\portable.ini
- set folder_name=pcsx2-%my_version%-%visualstudio_string%-%platform%-%target%
- rename bin %folder_name%
- 7z a -mx9 %folder_name%.7z %folder_name%
test: off
artifacts:
- path: $(folder_name).7z
name: $(visualstudio_string)-$(target)