Files
OpenRA/appveyor.yml
2015-03-20 18:01:12 +01:00

47 lines
1.6 KiB
YAML

version: 1.0.{build}
environment:
NSIS_ROOT: C:\nsis
install:
before_build:
- make dependencies
build:
project: OpenRA.sln
verbosity: minimal
test_script:
- nunit-console-x86.exe OpenRA.Test.dll
before_deploy:
- choco install pandoc
- pandoc -o README.md README.html
- pandoc -o CONTRIBUTING.md CONTRIBUTING.html
- appveyor DownloadFile "https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md" -FileName Changelog.md
- pandoc -o Changelog.md CHANGELOG.html
- make docs
- pandoc -o DOCUMENTATION.md DOCUMENTATION.html
- pandoc -o Lua-API.md Lua-API.html
- cp OpenRA.Game/OpenRA.ico .
- appveyor DownloadFile "http://downloads.sourceforge.net/project/nsis/NSIS 2/2.46/nsis-2.46-setup.exe" -FileName nsissetup.exe
- nsissetup /S /D=%NSIS_ROOT%
- appveyor DownloadFile "http://nsis.sourceforge.net/mediawiki/images/archive/1/18/20140806212030!NsProcess.zip" -FileName NsProcess.zip
- 7z x NsProcess.zip -o%NSIS_ROOT% -y
- move /Y %NSIS_ROOT%\Plugin\nsProcess.dll %NSIS_ROOT%\Plugins\nsProcess.dll
- '%NSIS_ROOT%\makensis /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\windows" /V3 packaging/windows/OpenRA.nsi'
- move /Y %APPVEYOR_BUILD_FOLDER%\packaging\windows\OpenRA.Setup.exe %APPVEYOR_BUILD_FOLDER%\OpenRA-%APPVEYOR_REPO_TAG_NAME%.exe
artifacts:
- name: Installer
path: 'OpenRA-%APPVEYOR_REPO_TAG_NAME%.exe'
deploy:
- provider: GitHub
auth_token:
secure: Z7RC+ckfvf7Kxf2EdWZCP7bgGjRnhgbMeieQP6VVhiZprwvbEzGXI2Wma+FGAq65
artifact: OpenRA-%APPVEYOR_REPO_TAG_NAME%.exe
on:
appveyor_repo_tag: true