Skip to content

Commit

Permalink
Add AppVeyor Script for CI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fakuivan committed Jan 22, 2017
1 parent 3deb800 commit 75e478b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
install:
- cmd: git clone https://github.com/alliedmodders/sourcemod.git --recursive -b 1.8-dev %APPVEYOR_BUILD_FOLDER%\..\sourcemod
- cmd: cd ..
- cmd: appveyor DownloadFile https://raw.githubusercontent.com/alliedmodders/sourcemod/master/tools/checkout-deps.ps1 -FileName .\checkout-deps.ps1
- ps: '& ".\checkout-deps.ps1"'

build_script:
- cmd: mkdir %APPVEYOR_BUILD_FOLDER%\build && cd %APPVEYOR_BUILD_FOLDER%\build
- cmd: "\"%VS140COMNTOOLS%VsDevCmd.bat\""
- cmd: python ..\configure.py --enable-optimize -s present
- cmd: C:\Python27\Scripts\ambuild.bat

after_build:
- cmd: cd %APPVEYOR_BUILD_FOLDER%
- ps: $env:FILE_TO_UPLOAD_NAME = "think_hooks-n{0}-windows.zip" -f (git rev-list --count HEAD)
- ps: $env:FILE_TO_UPLOAD_RELATIVE = "build\{0}" -f $env:FILE_TO_UPLOAD_NAME
- ps: $env:FILE_TO_UPLOAD_ABSOLUTE = "{0}\{1}" -f $env:APPVEYOR_BUILD_FOLDER, $env:FILE_TO_UPLOAD_RELATIVE

- cmd: cd %APPVEYOR_BUILD_FOLDER%\build\package\addons\sourcemod\
- cmd: 7z a %FILE_TO_UPLOAD_ABSOLUTE% *

artifacts:
- path: $(FILE_TO_UPLOAD_RELATIVE)

deploy:
- provider: GitHub
auth_token:
secure: Nup1VyJ60EDILS2GnPbjpNHqfP/uMi43mm4Opw5M+uTjcPxhJNGknXHK+kbk4eCY
artifact: $(FILE_TO_UPLOAD_RELATIVE)
draft: false
on:
appveyor_repo_tag: true

0 comments on commit 75e478b

Please sign in to comment.