зеркало из https://github.com/SixLabors/Shapes.git
add code coverage
This commit is contained in:
Родитель
d9e2f9f64f
Коммит
3a18d816c7
21
appveyor.yml
21
appveyor.yml
|
@ -1,21 +1,28 @@
|
|||
|
||||
version: 0.0.{build}
|
||||
install:
|
||||
- choco install gitversion.portable -pre -y
|
||||
- choco install gitversion.portable -pre -y
|
||||
|
||||
before_build:
|
||||
- ps: gitversion /l console /output buildserver
|
||||
- ps: gitversion /l console /output buildserver
|
||||
|
||||
build_script:
|
||||
- cmd: build.cmd
|
||||
- cmd: build.cmd
|
||||
|
||||
test_script:
|
||||
- tests\CodeCoverage\CodeCoverage.cmd
|
||||
|
||||
after_build:
|
||||
- cmd: appveyor PushArtifact "artifacts\Shaper2D.%GitVersion_NuGetVersion%.nupkg"
|
||||
|
||||
deploy:
|
||||
- provider: NuGet
|
||||
server: https://www.myget.org/F/shaper2d/api/v2/package
|
||||
api_key:
|
||||
secure: SyrSERGrjkK21TSCsHtqke5279SMxXCg2NXKjR2qaErP0khEplwxPwE8Ch5bxzyf
|
||||
- provider: NuGet
|
||||
server: https://www.myget.org/F/shaper2d/api/v2/package
|
||||
symbol_server: https://www.myget.org/F/shaper2d/api/v2/package # https://nuget.symbolsource.org/MyGet/imagesharp
|
||||
api_key:
|
||||
secure: SyrSERGrjkK21TSCsHtqke5279SMxXCg2NXKjR2qaErP0khEplwxPwE8Ch5bxzyf
|
||||
artifact: /.*\.nupkg/
|
||||
on:
|
||||
branch: master
|
||||
|
||||
test: off
|
|
@ -0,0 +1,21 @@
|
|||
@echo off
|
||||
|
||||
cd tests\CodeCoverage
|
||||
|
||||
nuget restore packages.config -PackagesDirectory .
|
||||
|
||||
cd ..\Shaper2D.Tests
|
||||
|
||||
dotnet restore
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
|
||||
rem The -threshold options prevents this taking ages...
|
||||
tests\CodeCoverage\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"C:\Program Files\dotnet\dotnet.exe" -targetargs:"test tests\Shaper2D.Tests -c Release -f net451" -threshold:10 -register:user -filter:"+[Shaper2D*]*" -excludebyattribute:*.ExcludeFromCodeCoverage* -hideskipped:All -returntargetcode -output:.\Shaper2D.Coverage.xml
|
||||
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%
|
||||
pip install codecov
|
||||
codecov -f "Shaper2D.Coverage.xml"
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="OpenCover" version="4.6.519" />
|
||||
</packages>
|
Загрузка…
Ссылка в новой задаче