forked from census-instrumentation/opencensus-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
45 lines (34 loc) · 1.18 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
# Without this "Update next build number or change version format."
version: "{build}"
image: Visual Studio 2017
platform:
- x64
configuration:
- Release
- Debug
before_build:
- cmake -G "Visual Studio 15 2017 Win64" .
build:
project: $(APPVEYOR_BUILD_FOLDER)\$(APPVEYOR_PROJECT_NAME).sln
test_script:
- ps: |
Get-ChildItem -Recurse -Path $env:APPVEYOR_BUILD_FOLDER -Filter "*_test.exe" | ForEach-Object {
Write-Output $_.FullName
$report_name = "--gtest_output=xml:" + $_.BaseName + "_report.xml"
#Write-Output $report_name
#Start-Process -FilePath $_.FullName -ArgumentList $report_name -Verbose
$cmdArgList = @(
('"{0}"' -f $report_name)
)
& $_.FullName $cmdArgList
}
Get-ChildItem -Recurse -Path $env:APPVEYOR_BUILD_FOLDER -Filter "*_benchmark.exe" | ForEach-Object {
Write-Output $_.FullName
& $_.FullName
}
on_finish:
- ps: |
Get-ChildItem -Recurse -Path $env:APPVEYOR_BUILD_FOLDER -Filter "*_test_report.xml" | ForEach-Object {
Write-Output $_.FullName
(new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $_.FullName)
}