-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
74 lines (56 loc) · 2.04 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
# Operating system (build VM template)
os:
- Visual Studio 2017
- Visual Studio 2015
- Visual Studio 2013
# build platform, i.e. Win32 (instead of x86), x64, Any CPU. This setting is optional.
# platform:
# - Win32
# - x64
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: C:\projects\spirit_po
# fetch repository as zip archive
shallow_clone: true # default is "false"
build: off
environment:
BOOST_VER: "boost_1_61_0"
BOOST_URL: "https://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.zip"
cache:
- C:\projects\boost_1_61_0.zip
install:
- ps: >-
If($true) {
Add-Type -assembly "system.io.compression.filesystem"
$boost_path = "C:\projects\" + $env:BOOST_VER
$boost_zip = $boost_path + ".zip"
If(Test-Path $boost_zip) {
Write-Host "Found cached boost"
} Else {
Write-Host "Downloading boost..."
(new-object net.webclient).DownloadFile($env:BOOST_URL, $boost_zip)
}
Write-Host "Extracting boost..."
[io.compression.zipfile]::ExtractToDirectory($boost_zip, "C:\projects\")
Set-Location $boost_path
Write-Host "Bootstrapping..."
& ".\bootstrap.bat"
$env:BOOST_ROOT = $boost_path
$env:Path += ";" + $boost_path + ";"
Set-Location "C:\projects\spirit_po\test"
Write-Host "Building test executables"
& b2 --toolset=msvc
}
test_script:
- ps: >-
If($true) {
$env:Path += ";C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x86\;"
$env:Path += ";C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\;"
$SymPath = "C:\projects\spirit_po\test\stage;SRV*c:\symbols*http://msdl.microsoft.com/download/symbols"
cmd /r mkdir c:\symbols
Write-Host "Running tests.."
cdb -y $SymPath -c "|;g;kv;q" -o C:\projects\spirit_po\stage\main.exe
Write-Host "Exit code: " $lastExitCode
}