forked from dotnet/pinvoke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
39 lines (34 loc) · 1.5 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
version: '{build}'
skip_tags: true
os: Visual Studio 2017
configuration: Release
environment:
VisualStudioVersion: 15.0
GeneratePInvokesTxt: true
TreatWarningsAsErrors: true
install:
- choco install pandoc
before_build:
- ps: >-
.\build.ps1 -Restore
#$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
build_script:
- ps: .\build.ps1 -Build
test_script:
- ps: .\build.ps1 -Test -NoParallelTests
after_build:
- ps: Get-ChildItem bin\*.pinvokes.txt -rec |? { $_.directory -notmatch 'tests' } |% { Push-AppveyorArtifact $_ -DeploymentName "PInvoke method coverage" }
- ps: Get-ChildItem bin\*.exports.txt -rec |? { $_.directory -notmatch 'tests' } |% { Push-AppveyorArtifact $_ -DeploymentName "Exported methods" }
- ps: Get-ChildItem bin\*.nupkg -rec |% { Push-AppveyorArtifact $_ -DeploymentName "NuGet Package" }
- ps: >-
$reportdir = "bin\$env:configuration"
tools\Get-CoverageReport.ps1 -NoBuild -Configuration $env:configuration -OutFile "$reportdir\coverage.md"
pandoc -f markdown -t html "$reportdir\coverage.md" -o "$reportdir\coverage.html"
Push-AppveyorArtifact "$reportdir\coverage.html" -DeploymentName "PInvoke coverage report"
Push-AppveyorArtifact "$reportdir\coverage.md" -DeploymentName "PInvoke coverage report"
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/c4d61fc5002e9a62a22f
on_build_success: true
on_build_failure: true
on_build_status_changed: true