-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.appveyor.yml
78 lines (64 loc) · 2.88 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
################################################################################
# #
# Appveyor "continuous integration" configuration file #
# #
################################################################################
# Environment variables. Every item in the sequence (delimited by dashes) gives
# us another build in the build matrix.
environment:
matrix:
- BOOST_VERSION_MINOR: 63
BUILD_SHARED_LIBS: ON
- BOOST_VERSION_MINOR: 63
BUILD_SHARED_LIBS: OFF
- BOOST_VERSION_MINOR: 62
BUILD_SHARED_LIBS: ON
- BOOST_VERSION_MINOR: 62
BUILD_SHARED_LIBS: OFF
# Build with VS2015
image: Visual Studio 2015
# Build both 32 and 64 bit versions.
platform:
- x86
- x64
# MSVC configurations.
configuration:
- Debug
- Release
before_build:
# Appveyor has the following boost libraries installed:
# 1.63.0 (C:\Libraries\boost_1_63_0)
# 1.62.0 (C:\Libraries\boost_1_62_0)
# 1.60.0 (C:\Libraries\boost_1_60_0)
# 1.59.0 (C:\Libraries\boost_1_59_0)
# 1.58.0 (C:\Libraries\boost_1_58_0)
# 1.56.0 (C:\Libraries\boost)
# See: https://www.appveyor.com/docs/installed-software/#languages-libraries-frameworks
# Need to adjust the PATH to make these DLLs visible to our test executables.
# BOOST_VERSION_MINOR is set in the environment matrix in this YAML file.
- set BOOST_ROOT=C:\Libraries\boost_1_%BOOST_VERSION_MINOR%_0
# PLATFORM is the value set by the platform key in this YAML file.
# BUILD_SHARED_LIBS is set in the environment matrix in this YAML file.
- if %PLATFORM%==x86 (set BOOST_LIBS=%BOOST_ROOT%\lib32-msvc-14.0)
- if %PLATFORM%==x64 (set BOOST_LIBS=%BOOST_ROOT%\lib64-msvc-14.0)
- if %PLATFORM%==x86 (set "GENERATOR=Visual Studio 14 2015")
- if %PLATFORM%==x64 (set "GENERATOR=Visual Studio 14 2015 Win64")
# Adjust the PATH so that the boost DLLs are visible to the linker.
# Boost.Test is always linked dynamically, so we always have to adjust this
# path.
- set "PATH=%PATH%;%BOOST_LIBS%"
# APPVEYOR_BUILD_FOLDER is the path where yaml-archive is cloned to.
- set BUILD_DIR=%APPVEYOR_BUILD_FOLDER%\build
- mkdir %BUILD_DIR%
- cd %BUILD_DIR%
# Configure the project. CONFIGURATION is the value set by the configuration
# key in this YAML file.
- cmake %APPVEYOR_BUILD_FOLDER% -G"%GENERATOR%" -DBOOST_ROOT=%BOOST_ROOT% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS%
build_script:
# Build the library and the test executables for CTest.
- cmake --build %BUILD_DIR% --target ALL_BUILD --config %CONFIGURATION%
test_script:
# Make sure the test executables can find yaml-archive.dll.
- set "PATH=%PATH%;%BUILD_DIR%\src\%CONFIGURATION%"
# Run all unit tests.
- ctest -C %CONFIGURATION% --output-on-failure