-
Notifications
You must be signed in to change notification settings - Fork 47
/
appveyor.yml
77 lines (61 loc) · 2.31 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
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: C:\projects\visit_struct
# 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"
matrix:
- os: Visual Studio 2017
# TEST_CXX14: true
# ^ CXX14 Tests not passing yet as of July 11 2017
# But, the headers compile even with CXX14 constexpr enabled
# What is the minimum MSVC version that allows tests to pass too?
- os: Visual Studio 2015
- os: Visual Studio 2013
SKIP_INTRUSIVE: true
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\visit_struct"
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\visit_struct\test\stage;SRV*c:\symbols*http://msdl.microsoft.com/download/symbols"
cmd /r mkdir c:\symbols
Write-Host "Running test executables.."
$files = Get-ChildItem C:\projects\visit_struct\stage\*.exe
ForEach($file in $files) {
Write-Host ""
Write-Host $file.fullName " ... "
cdb -y $SymPath -c "|;g;kv;q" -o $file.fullName
Write-Host "Exit code: " $lastExitCode
}
}