-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
25 lines (23 loc) · 871 Bytes
/
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
version: 1.0.{build}
image: Visual Studio 2017
configuration:
- Debug
- Release
platform: Any CPU
build_script:
- ps: dotnet restore
- ps: dotnet build -c $env:CONFIGURATION
test_script:
- ps: >-
if ($env:CONFIGURATION -ne "Release") {
nuget.exe install OpenCover -OutputDirectory .\tools\
.\tools\OpenCover.*\tools\OpenCover.Console.exe -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test -c Debug .\test\Amockibia.Test\Amockibia.Test.csproj" -filter:"+[Amockibia]* -[Amockibia].Test*" -output:"coverage.xml" -oldStyle -returntargetcode
} else {
dotnet test .\test\Amockibia.Test\Amockibia.Test.csproj -c $env:CONFIGURATION
}
after_test:
- ps: >-
if ($env:CONFIGURATION -ne "Release") {
nuget.exe install CodeCov -OutputDirectory .\tools\
.\tools\Codecov.*\tools\codecov.exe -f coverage.xml
}