зеркало из https://github.com/SixLabors/Shapes.git
fixes to codecov
This commit is contained in:
Родитель
e1ce763a72
Коммит
41ce5a38b8
|
@ -17,8 +17,8 @@ if (Get-Command "dotnet.exe" -ErrorAction SilentlyContinue) {
|
|||
Write-Host "dotnet SDK already installed"
|
||||
|
||||
$version = dotnet --version 2>&1
|
||||
if($version -ne "1.0.0"){
|
||||
Write-Host "$version installed but require 1.0.0"
|
||||
if($version -ne "1.0.1"){
|
||||
Write-Host "$version installed but require 1.0.1"
|
||||
$installRequired = $TRUE
|
||||
}else{
|
||||
Write-Host "$version already installed"
|
||||
|
@ -34,7 +34,7 @@ if($installRequired -eq $TRUE)
|
|||
|
||||
Write-Host $installScript
|
||||
|
||||
Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1" `
|
||||
Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.1/scripts/obtain/dotnet-install.ps1" `
|
||||
-OutFile $installScript
|
||||
|
||||
& $installScript
|
||||
|
|
|
@ -28,14 +28,12 @@ Its a fully manged netstandard library so should work everywhere.</Description>
|
|||
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
|
||||
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
|
||||
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
|
||||
<DebugType Condition="$(codecov) != ''">full</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<DotNetCliToolReference Include="dotnet-version" Version="1.1.0" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Buffers" Version="4.3.0" />
|
||||
<PackageReference Include="System.Collections.Immutable" Version="1.3.1" />
|
||||
|
|
|
@ -7,12 +7,13 @@ nuget restore packages.config -PackagesDirectory .
|
|||
cd ..\SixLabors.Shapes.Tests
|
||||
|
||||
dotnet restore SixLabors.Shapes.Tests.csproj
|
||||
dotnet build SixLabors.Shapes.Tests.csproj /p:codecov=true
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
|
||||
rem The -threshold options prevents this taking ages...
|
||||
tests\CodeCoverage\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"C:\Users\appveyor\AppData\Local\Microsoft\dotnet\dotnet.exe" -targetargs:"test tests\SixLabors.Shapes.Tests\SixLabors.Shapes.Tests.csproj -c Release -f net451" -threshold:10 -register:user -filter:"+[SixLabors.Shapes*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -returntargetcode -output:.\SixLabors.Shapes.Coverage.xml
|
||||
tests\CodeCoverage\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test tests\SixLabors.Shapes.Tests\SixLabors.Shapes.Tests.csproj --no-build -c Release" -threshold:10 -register:user -filter:"+[SixLabors.Shapes*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -returntargetcode -output:.\SixLabors.Shapes.Coverage.xml
|
||||
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
|
||||
<DebugType Condition="$(codecov) != ''">full</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче