try publishing coverage to codecov

This commit is contained in:
Collin M. Barrett 2018-10-13 10:55:23 -05:00
parent bb1a91a7a3
commit f3dd3ca3a1
2 changed files with 7 additions and 1 deletions

View file

@ -9,7 +9,9 @@ addons:
- sshpass
script:
- scripts/build.sh
- dotnet test tests/FilterLists.Services.Tests/FilterLists.Services.Tests.csproj
- dotnet test -c Release --no-build tests/FilterLists.Services.Tests/FilterLists.Services.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
after_script:
- bash <(curl -s https://codecov.io/bash)
env:
global:
#FTP_USER

View file

@ -7,6 +7,10 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="2.3.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0">