-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
38 lines (37 loc) · 1.54 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
version: '{build}'
image: Visual Studio 2019
init:
- git config --global core.autocrlf true
configuration:
- Debug
- Release
before_build:
- nuget restore
skip_tags: true
build:
project: DocumentationAnalyzers.sln
verbosity: minimal
test_script:
- cd build
- ps: |
if ($env:Configuration -eq 'Debug') {
.\opencover-report.ps1 -Debug -NoBuild -NoReport -AppVeyor
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
$packageConfig = [xml](Get-Content ..\.nuget\packages.config)
$codecov_version = $packageConfig.SelectSingleNode('/packages/package[@id="Codecov"]').version
$codecov = "..\packages\Codecov.$codecov_version\tools\codecov.exe"
&$codecov -f '..\build\OpenCover.Reports\OpenCover.DocumentationAnalyzers.xml'
} else {
.\opencover-report.ps1 -NoBuild -NoReport -AppVeyor
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
}
- cd ..
- .\DocumentationAnalyzers\DocumentationAnalyzers.Status.Generator\bin\%Configuration%\net472\DocumentationAnalyzers.Status.Generator.exe .\DocumentationAnalyzers.sln > DocumentationAnalyzers.Status.json
cache:
- packages -> **\packages.config
- C:\Users\appveyor\.nuget\packages -> appveyor.yml
# 'Release' is hard-coded to ensure VSIX and NuGet artifacts are only published for release configuration builds
artifacts:
- path: 'DocumentationAnalyzers\DocumentationAnalyzers.Vsix\bin\Release\net452\*.vsix'
- path: 'DocumentationAnalyzers\DocumentationAnalyzers.CodeFixes\bin\Release\*.nupkg'
- path: 'DocumentationAnalyzers.Status.json'