-
Notifications
You must be signed in to change notification settings - Fork 12
/
appveyor.yml
64 lines (54 loc) · 1.84 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
# Operating system (build VM template)
os: Visual Studio 2015
# 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\strict_variant
# fetch repository as zip archive
shallow_clone: true # default is "false"
branches:
only:
- master
build: off
install:
- ps: >-
If($true) {
Add-Type -assembly "system.io.compression.filesystem"
Write-Host "Downloading boost..."
[int]$trials = 0
do {
try {
$trials +=1
(new-object net.webclient).DownloadFile("https://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.zip", "C:\projects\boost_1_60_0.zip")
break
} catch [System.Net.WebException] {
write-host "Problem downloading boost:\n" $_.Exception.Message
}
}
while ($trials -lt 3)
Write-Host "Extracting boost..."
[io.compression.zipfile]::ExtractToDirectory("C:\projects\boost_1_60_0.zip", "C:\projects\")
Set-Location "C:\projects\boost_1_60_0"
Write-Host "Building boost.build.."
& ".\bootstrap.bat"
$env:BOOST_ROOT = "C:\projects\boost_1_60_0"
$env:Path += ";C:\projects\boost_1_60_0;"
Set-Location "C:\projects\strict_variant\test"
Write-Host "Building test executables"
& b2 --toolset=msvc -d+2
}
test_script:
- ps: >-
If($true) {
Write-Host "Running test executables.."
$files = Get-ChildItem C:\projects\strict_variant\test\stage\*.exe
ForEach($file in $files) {
Write-Host $file.fullName " ... "
& $file.fullName
}
}