mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
795 B
21 lines
795 B
@echo off
|
|
|
|
|
|
cd tests\CodeCoverage
|
|
|
|
nuget restore packages.config -PackagesDirectory .
|
|
|
|
cd ..
|
|
cd ..
|
|
|
|
dotnet restore ImageSharp.sln
|
|
rem Clean the solution to force a rebuild with /p:codecov=true
|
|
dotnet clean ImageSharp.sln -c Release
|
|
rem The -threshold options prevents this taking ages...
|
|
tests\CodeCoverage\OpenCover.4.7.922\tools\OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test tests\ImageSharp.Tests\ImageSharp.Tests.csproj -c Release -f netcoreapp2.1 /p:codecov=true" -register:user -threshold:10 -oldStyle -safemode:off -output:.\ImageSharp.Coverage.xml -hideskipped:All -returntargetcode -filter:"+[SixLabors.ImageSharp*]*"
|
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%
|
|
pip install codecov
|
|
codecov -f "ImageSharp.Coverage.xml"
|
|
|