Add code coverage metric
This commit is contained in:
parent
4d44f67192
commit
699d9e333d
@ -11,6 +11,9 @@
|
||||
<a href="https://ci.appveyor.com/project/uranium62/xxhash">
|
||||
<img src="https://ci.appveyor.com/api/projects/status/j5gkm2rvxwu4gu3q?svg=true" alt="build" />
|
||||
</a>
|
||||
<a href="https://codecov.io/gh/uranium62/xxHash">
|
||||
<img src="https://codecov.io/gh/uranium62/xxHash/branch/master/graph/badge.svg" alt="coverage"/>
|
||||
</a>
|
||||
<a href="https://github.com/uranium62/xxHash/blob/master/LICENSE">
|
||||
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="license" />
|
||||
</a>
|
||||
|
||||
@ -2,6 +2,10 @@ version: xxHash-{branch}-{build}
|
||||
|
||||
test: off
|
||||
|
||||
before_build:
|
||||
- choco install opencover.portable
|
||||
- choco install codecov
|
||||
|
||||
install:
|
||||
- ps: $env:DOTNET_BUILD_VERSION = $env:APPVEYOR_BUILD_NUMBER
|
||||
|
||||
@ -10,3 +14,7 @@ build_script:
|
||||
|
||||
artifacts:
|
||||
- path: artifacts\*.nupkg
|
||||
|
||||
test_script:
|
||||
- OpenCover.Console.exe -register:user -target:"dotnet.exe" -targetargs:"test src/Standart.Hash.xxHash.Test" -output:coverage.xml -oldstyle -filter:"+[Standart*]* -[*.Test]*"
|
||||
- codecov -f "coverage.xml"
|
||||
@ -3,6 +3,7 @@
|
||||
<PropertyGroup>
|
||||
<IsPackable>false</IsPackable>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
<DebugType>full</DebugType>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<Optimize>true</Optimize>
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
<Optimize>false</Optimize>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>full</DebugType>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Buffers" Version="$(SystemBuffers)" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user