forked from fkutzner/candy-kingdom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (38 loc) · 1.27 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
44
45
46
47
48
os: Visual Studio 2015
init:
- git config --global core.autocrlf input
clone_folder: C:\projects\repos\candy-kingdom
platform:
- x64
environment:
global:
ZLIB_ROOT: C:\projects\stp\zlib\myinstall
REPO_DIR: C:\projects\repos
INSTALLATION_DIR: C:\projects\installation
configuration:
- Release
# This is a workaround: AppVeyor tries to directly invoke MSBuild unless
# "build: false" is set, which causes the build script to be ignored.
install:
# Build and install zlib in INSTALLATION_DIR
- cd %REPO_DIR%
- git clone https://github.com/madler/zlib
- cd zlib
- git checkout v1.2.8
- mkdir build
- cd build
- cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%INSTALLATION_DIR% ..
- cmake --build . --config %CONFIGURATION%
- cmake --build . --config %CONFIGURATION% --target install
- set PATH=%PATH%;%INSTALLATION_DIR%\bin;%INSTALLATION_DIR%\lib
# Build and test candy-kingdom
- cd %REPO_DIR%\candy-kingdom
- git submodule init
- git submodule update
- mkdir ..\build
- cd ..\build
- cmake -G "Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=%INSTALLATION_DIR% -DCMAKE_PREFIX_PATH=%INSTALLATION_DIR% ..\candy-kingdom
- cmake --build . --config %CONFIGURATION%
- ctest -V -C %CONFIGURATION%
build: false
test: off