2015-10-08 22:35:07 +00:00
|
|
|
# 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}
|
|
|
|
|
2017-10-07 21:40:17 +00:00
|
|
|
image: Visual Studio 2017
|
|
|
|
|
2015-10-08 22:35:07 +00:00
|
|
|
environment:
|
|
|
|
matrix:
|
2017-10-07 21:40:17 +00:00
|
|
|
- platform: Win32
|
|
|
|
target: AppVeyor
|
|
|
|
visualstudio_string: vs2017
|
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
2015-10-08 22:35:07 +00:00
|
|
|
- platform: Win32
|
2016-01-10 12:05:30 +00:00
|
|
|
target: AppVeyor
|
2015-10-08 22:35:07 +00:00
|
|
|
visualstudio_string: vs2015
|
2017-10-07 21:40:17 +00:00
|
|
|
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
2015-10-08 22:35:07 +00:00
|
|
|
|
2016-01-10 12:05:30 +00:00
|
|
|
matrix:
|
|
|
|
fast_finish: true
|
|
|
|
|
2015-10-08 22:35:07 +00:00
|
|
|
init:
|
|
|
|
# Use CRLF line endings on Windows so users can just use Notepad.
|
|
|
|
- git config --global core.autocrlf true
|
|
|
|
|
2017-04-17 21:43:28 +00:00
|
|
|
install:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
|
2015-10-08 22:35:07 +00:00
|
|
|
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
|
2016-10-01 21:25:52 +00:00
|
|
|
- ps: $env:my_version = "$env:gitrev-$env:appveyor_build_number"
|
2015-10-08 22:35:07 +00:00
|
|
|
- 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)
|