-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
25 lines (24 loc) · 1 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
image: Visual Studio 2019
build_script:
- choco install opencover -y
- dotnet restore "RES.Configuration.sln"
- dotnet build RES.Configuration.sln /nowarn:1125 /verbosity:quiet
- C:\Users\AppVeyor\AppData\Local\Apps\OpenCover\OpenCover.Console.exe -register:Path64 -target:"nunit3-console.exe" -targetargs:"BuiltDlls\Debug\RES.Configuration.Test.dll" -output:"coverage.xml" -returntargetcode
- dotnet build RES.Configuration\RES.Configuration.csproj /t:pack /p:IncludeSymbols=true /nowarn:1125 /verbosity:quiet
test_script:
# upload the code coverage to codcov.io
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage.xml" -U "-s" -A "-s"
artifacts:
- path: BuiltDLLs\Debug\*.nupkg
- path: coverage.xml
notifications:
- provider: Email
to:
- '{{commitAuthorEmail}}'
subject: 'Build {{status}}'
on_build_success: false
on_build_failure: true
on_build_status_changed: false