forked from becrux/xfspp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
94 lines (75 loc) · 3.44 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
image:
Visual Studio 2015
environment:
COVERALLS_REPO_TOKEN:
secure: pC5gv/PNQxgAiwVFw2EGKSRmYT73YMCWykI/pQxxBgBfjp+WTDf6Puqtb3pW+wJB
matrix:
- GENERATOR: "Visual Studio 12 2013"
PLATFORM: MSVC
CONFIG: Debug
- GENERATOR: "Visual Studio 12 2013"
PLATFORM: MSVC
CONFIG: Release
- GENERATOR: "Visual Studio 12 2013 Win64"
PLATFORM: MSVC
CONFIG: Debug
- GENERATOR: "Visual Studio 12 2013 Win64"
PLATFORM: MSVC
CONFIG: Release
- GENERATOR: "Visual Studio 14 2015"
PLATFORM: MSVC
CONFIG: Debug
- GENERATOR: "Visual Studio 14 2015"
PLATFORM: MSVC
CONFIG: Release
- GENERATOR: "Visual Studio 14 2015 Win64"
PLATFORM: MSVC
CONFIG: Debug
- GENERATOR: "Visual Studio 14 2015 Win64"
PLATFORM: MSVC
CONFIG: Release
- GENERATOR: "MinGW Makefiles"
PLATFORM: MinGW-w64
CONFIG: Debug
- GENERATOR: "MinGW Makefiles"
PLATFORM: MinGW-w64
CONFIG: Release
- GENERATOR: "Visual Studio 14 2015"
PLATFORM: CLang
CONFIG: Debug
- GENERATOR: "Visual Studio 14 2015"
PLATFORM: CLang
CONFIG: Release
install:
- if [%PLATFORM%]==[MinGW-w64] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
- ps: If ($Env:PLATFORM -eq 'MinGW-w64') { (New-Object Net.WebClient).DownloadFile("http://downloads.sourceforge.net/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.8.5/threads-win32/sjlj/i686-4.8.5-release-win32-sjlj-rt_v4-rev0.7z", "$env:APPVEYOR_BUILD_FOLDER\mw32.7z") }
- if [%PLATFORM%]==[MinGW-w64] 7z x -oC:\ mw32.7z > NUL
- if [%PLATFORM%]==[MinGW-w64] set PATH=C:\mingw32\bin;%PATH%
- ps: If ($Env:PLATFORM -eq 'MinGW-w64') { (New-Object Net.WebClient).DownloadFile("https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip", "$env:APPVEYOR_BUILD_FOLDER\ninja.zip") }
- if [%PLATFORM%]==[MinGW-w64] 7z x -oC:\mingw32\bin ninja.zip > NUL
- if [%PLATFORM%]==[CLang] set PATH="C:\Program Files\LLVM\bin";%PATH%
- if [%PLATFORM%]==[CLang] clang-cl -v
- if [%PLATFORM%]==[MinGW-w64] python -m ensurepip
- if [%PLATFORM%]==[MinGW-w64] python -m pip install cpp-coveralls
build_script:
- mkdir build
- cd build
- if [%PLATFORM%]==[CLang] cmake -G "%GENERATOR%" -T"LLVM-vs2014" ..
- if [%PLATFORM%]==[MSVC] cmake -G "%GENERATOR%" ..
- if [%PLATFORM%]==[MinGW-w64] cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE="%CONFIG%" ..
- if [%PLATFORM%]==[MinGW-w64] (cmake --build . --config "%CONFIG%") else (cmake --build . --config "%CONFIG%" --target ALL_BUILD -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll")
test_script:
- if [%PLATFORM%]==[MinGW-w64] (cmake --build . --config "%CONFIG%" --target tests) else (cmake --build . --config "%CONFIG%" --target tests -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll")
- ctest -VV --build-config "%CONFIG%" --no-compress-output --output-on-failure -T Test
on_finish:
- ps: |
$files = Get-ChildItem ".\tests_xml"
for ($i=0; $i -lt $files.Count; $i++)
{
$wc = New-Object 'System.Net.WebClient'
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $files[$i].FullName))
}
if ($env:PLATFORM -eq 'MinGW-w64' -and $env:CONFIG -eq 'Debug')
{
Start-Process coveralls.exe -ArgumentList "-r .. -e tests -e ext -e cen -x cpp -x hpp" -Wait
}