-
Notifications
You must be signed in to change notification settings - Fork 26
/
appveyor.yml
52 lines (43 loc) · 2.28 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
46
47
48
49
50
51
52
configuration: Release
image: Visual Studio 2017
init:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
else
{
Update-AppveyorBuild -Version "3.3.0-ci.$($env:APPVEYOR_BUILD_NUMBER)+sha.$($env:APPVEYOR_REPO_COMMIT.substring(0,7))"
}
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
cache:
- C:\ProgramData\chocolatey\bin -> appveyor.yml
- C:\ProgramData\chocolatey\lib -> appveyor.yml
- '%LocalAppData%\NuGet\v3-cache -> **\*.csproj'
before_build:
- dotnet restore --verbosity quiet
- choco install opencover.portable
- choco install codecov
build:
parallel: true
verbosity: minimal
test_script:
- OpenCover.Console.exe -oldstyle -returntargetcode -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --configuration Release --no-build src\Ninject.MockingKernel.FakeItEasy.Test" -filter:"+[Ninject.MockingKernel]* +[Ninject.MockingKernel.FakeItEasy]*" -excludebyattribute:*.ExcludeFromCodeCoverage*;*.Obsolete* -output:"Ninject.MockingKernel.FakeItEasy_coverage.xml"
- OpenCover.Console.exe -oldstyle -returntargetcode -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --configuration Release --no-build src\Ninject.MockingKernel.Moq.Test" -filter:"+[Ninject.MockingKernel]* +[Ninject.MockingKernel.Moq]*" -excludebyattribute:*.ExcludeFromCodeCoverage*;*.Obsolete* -output:"Ninject.MockingKernel.Moq_coverage.xml"
- OpenCover.Console.exe -oldstyle -returntargetcode -register:user -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test --configuration Release --no-build src\Ninject.MockingKernel.NSubstitute.Test" -filter:"+[Ninject.MockingKernel]* +[Ninject.MockingKernel.NSubstitute]*" -excludebyattribute:*.ExcludeFromCodeCoverage*;*.Obsolete* -output:"Ninject.MockingKernel.NSubstitute_coverage.xml"
- codecov -f "Ninject.MockingKernel.FakeItEasy_coverage.xml"
- codecov -f "Ninject.MockingKernel.Moq_coverage.xml"
- codecov -f "Ninject.MockingKernel.NSubstitute_coverage.xml"
artifacts:
- path: '**\*.nupkg'
deploy:
provider: NuGet
api_key:
secure: Sn05A/FiUAlID5v31uaf5EZuYCSo4frLONtrCY+cwY265dU2JUZsl2+sjVeLQyz/
on:
appveyor_repo_tag: true