forked from MrSapps/alive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
43 lines (34 loc) · 1.25 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: 1.0.{build}
platform:
- x86
- x64
configuration:
- Debug
- Release
clone_folder: c:\alive
before_build:
- mkdir build
- cd build
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%
- echo %platform%
- if %platform%==X64 (cmake .. -G "Visual Studio 14 2015 Win64")
- if %platform%==x86 (cmake .. -G "Visual Studio 14 2015")
build_script:
- cmake --build . --config %configuration% -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# Gotta use the full path to cpack because chocolatey replaces cpack with itself!
- call "C:\Program Files (x86)\cmake\bin\cpack" -G WIX -C %configuration%
- call "C:\Program Files (x86)\cmake\bin\cpack" -G ZIP -C %configuration%
- ctest -VV -C %configuration%
install:
- git submodule update --init --recursive
- ps: Start-FileDownload 'https://www.libsdl.org/release/SDL2-devel-2.0.4-VC.zip'
- 7z x SDL2-devel-2.0.4-VC.zip
- set SDL2DIR=C:\alive\SDL2-2.0.4
artifacts:
- path: build\*.msi
name: MSI-Alive-$(configuration)-$(APPVEYOR_REPO_COMMIT)
- path: build\*.zip
name: ZIP-Alive-$(configuration)-$(APPVEYOR_REPO_COMMIT)
- path: build\%configuration%\ddraw.dll
name: HOOK-Alive-$(configuration)-$(APPVEYOR_REPO_COMMIT)
test: off