-
Notifications
You must be signed in to change notification settings - Fork 115
/
Copy pathappveyor.yml
45 lines (38 loc) · 1.36 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
os:
- Visual Studio 2017
environment:
matrix:
- TRIPLET: x64-windows
GENERATOR: "Visual Studio 15 2017 Win64"
PLATFORM: x64
- TRIPLET: x86-windows
GENERATOR: "Visual Studio 15 2017"
PLATFORM: Win32
install:
# Make sure vcpkg itself is in a reasonably known and up-to-date state.
# Appveyor provides its own copy of vcpkg, which is not necessarily in
# a known state. This did led to at least one bug: documented in
# https://github.com/cpp-io2d/P0267_RefImpl/issues/86 .
- set PREV_DIR=%cd%
- cd c:\tools\vcpkg
- git fetch
- git checkout 7881abfc29c916330e868118b29606cb32c51b16
- bootstrap-vcpkg.bat
#
# Make sure io2d's submodules get downloaded
- cd %PREV_DIR%
- git submodule update --init --recursive
#
# Install dependencies via vcpkg
- vcpkg install cairo:%TRIPLET%
- vcpkg install graphicsmagick:%TRIPLET%
configuration:
- Debug
before_build:
- mkdir %CONFIGURATION%
- cd %CONFIGURATION%
- cmake -G "%GENERATOR%" --config %CONFIGURATION% "-DCMAKE_BUILD_TYPE=%CONFIGURATION%" -DIO2D_DEFAULT=CAIRO_WIN32 "-DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DVCPKG_TARGET_TRIPLET=%TRIPLET%" ../.
build_script:
- msbuild io2d.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
test_script:
- ctest -V -C %CONFIGURATION%