Skip to content

Commit

Permalink
Trying to set up a Coveralls configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
squid-box committed Jul 28, 2018
1 parent 9c116cf commit ef504f8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ Backup/
.vs/**
/packages/**
/[Ss]tage/**
/TestResult.xml
/coverage.xml
9 changes: 9 additions & 0 deletions SevenZipTests/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="coveralls.io" version="1.4.2" targetFramework="net461" />
<package id="NUnit" version="3.10.1" targetFramework="net461" />
<package id="NUnit.ConsoleRunner" version="3.8.0" targetFramework="net461" />
<package id="NUnit.Extension.NUnitProjectLoader" version="3.5.0" targetFramework="net461" />
<package id="NUnit.Extension.NUnitV2Driver" version="3.6.0" targetFramework="net461" />
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.5.0" targetFramework="net461" />
<package id="NUnit.Extension.TeamCityEventListener" version="1.0.3" targetFramework="net461" />
<package id="NUnit.Extension.VSProjectLoader" version="3.7.0" targetFramework="net461" />
<package id="NUnit.Runners" version="3.8.0" targetFramework="net461" />
<package id="OpenCover" version="4.6.519" targetFramework="net461" />
</packages>
10 changes: 9 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ assembly_info:
before_build:
nuget restore SevenZip.sln

environment:
COVERALLS_REPO_TOKEN:
secure: uhHSJvf0G4qxIzWt2740yqjI1a5jGRM0bUFdf3nWGUYrHBc0rJXHn0wExDiWMz/O

build:
parallel: true
project: 'SevenZip.sln'
Expand All @@ -21,8 +25,12 @@ build:
after_build:
- cmd: nuget pack package.nuspec -version "%APPVEYOR_BUILD_VERSION%"

after_test:
- cmd: Stage\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -filter:"+[SevenZipTests]*" -target:"Stage\packages\NUnit.ConsoleRunner.3.8.0\tools\nunit3-console.exe" -targetargs:"/domain:single Stage/Release/SevenZipTests.dll" -output:coverage.xml
- cmd: Stage\packages\coveralls.io.1.4.2\tools\coveralls.net.exe --opencover coverage.xml -r %COVERALLS_REPO_TOKEN%

artifacts:
path: 'Squid-Box.SevenZip*.nupkg'
- path: 'Squid-Box.SevenZip*.nupkg'

deploy:
provider: NuGet
Expand Down
7 changes: 6 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ Main differences from the original project:
* .Net 4.5 instead of 2.0
* Only .Net 4.5 works (no Mobile or Mono compatibility, but if you do a PR ...)
* Has a nuget package: https://www.nuget.org/packages/Squid-Box.SevenZipSharp/
* CI with appveyor [![Build status](https://ci.appveyor.com/api/projects/status/bgp7yh7f0fpamt95?svg=true)](https://ci.appveyor.com/project/squid-box/sevenzipsharp)


## Continuous Integration
[![Build status](https://ci.appveyor.com/api/projects/status/bgp7yh7f0fpamt95?svg=true)](https://ci.appveyor.com/project/squid-box/sevenzipsharp)

[![Coverage Status](https://coveralls.io/repos/github/squid-box/SevenZipSharp/badge.svg)](https://coveralls.io/github/squid-box/SevenZipSharp)

Issues, suggestions, and Pull Requests are welcome!

Expand Down

0 comments on commit ef504f8

Please sign in to comment.