-
Notifications
You must be signed in to change notification settings - Fork 18
/
appveyor.yml
67 lines (59 loc) · 1.71 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
version: '{build}'
image:
- Visual Studio 2015
- Visual Studio 2017
environment:
matrix:
- BUILD_SHARED_LIBS: True
HTD_USE_EXTENDED_IDENTIFIERS: True
- BUILD_SHARED_LIBS: True
HTD_USE_EXTENDED_IDENTIFIERS: False
- BUILD_SHARED_LIBS: False
HTD_USE_EXTENDED_IDENTIFIERS: True
- BUILD_SHARED_LIBS: False
HTD_USE_EXTENDED_IDENTIFIERS: False
platform:
- Win32
- x64
configuration:
- Release
- Debug
build:
project: C:\projects\htd\_build\ALL_BUILD.vcxproj
verbosity: minimal
before_build:
- ps: |
Write-Output "Configuration: $env:CONFIGURATION"
Write-Output "Platform: $env:PLATFORM"
$generator = switch ($env:APPVEYOR_BUILD_WORKER_IMAGE)
{
"Visual Studio 2015" {"Visual Studio 14 2015"}
"Visual Studio 2017" {"Visual Studio 15 2017"}
}
if ($env:PLATFORM -eq "x64")
{
$generator = "$generator Win64"
}
if ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015")
{
del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
}
build_script:
- ps: |
md _build -Force | Out-Null
cd _build
& cmake -G "$generator" -DCMAKE_CONFIGURATION_TYPES="Debug;Release" -DBUILD_SHARED_LIBS=$env:BUILD_SHARED_LIBS -DHTD_USE_EXTENDED_IDENTIFIERS=$env:HTD_USE_EXTENDED_IDENTIFIERS ..
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
& cmake --build . --config $env:CONFIGURATION
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}
test_script:
- ps: |
& ctest -VV -C $env:CONFIGURATION --output-on-failure
Push-AppveyorArtifact "Testing/Temporary/LastTest.log"
if ($LastExitCode -ne 0) {
throw "Exec: $ErrorMessage"
}