Skip to content

Commit 1f2d22c

Browse files
committed
More Build, Test, & Documentation
* Begin building NuGet package on AppVeyor * Add commands for running tests and test coverage * Use OpenCover and ReportGenerator to analyze code coverage * Commented out long running test cases; will refactor them soon
1 parent 4716a15 commit 1f2d22c

124 files changed

Lines changed: 105107 additions & 113 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ os:
77
solution: ICSharpCode.SharpZipLib.sln
88
install:
99
- nuget restore ICSharpCode.SharpZipLib.sln
10-
- nuget install NUnit.ConsoleRunner -Version 3.2.0 -OutputDirectory testrunner
10+
# - nuget install NUnit.ConsoleRunner -Version 3.2.0 -OutputDirectory testrunner
1111
script:
1212
- xbuild /p:Configuration=Debug ICSharpCode.SharpZipLib.sln
1313
- xbuild /p:Configuration=Release ICSharpCode.SharpZipLib.sln
14-
- mono ./testrunner/NUnit.ConsoleRunner.3.2.0/tools/nunit3-console.exe /framework:mono-4.0 /result:./Documentation/nunit3-test-results-travis.xml ./ICSharpCode.SharpZipLib.Tests/bin/Release/ICSharpCode.SharpZipLib.Tests.dll
14+
- mono ./packages/NUnit.ConsoleRunner.3.2.0/tools/nunit3-console.exe /framework:mono-4.0 /result:./Documentation/nunit3-test-results-travis.xml ./bin/Release/ICSharpCode.SharpZipLib.Tests.dll
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0"?>
2+
<package>
3+
<metadata>
4+
<id>ICSharpCode.SharpZipLib</id>
5+
<version>1.0.0</version>
6+
<title>SharpZipLib</title>
7+
<authors>IC#Code</authors>
8+
<owners>IC#Code</owners>
9+
<licenseUrl>https://visualstudiogallery.msdn.microsoft.com/site/68c1575b-e0bf-420d-a94b-1b0f4bcdcbcc/eula?licenseType=None</licenseUrl>
10+
<projectUrl>http://icsharpcode.github.io/SharpZipLib/</projectUrl>
11+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
12+
<description>Compression library for Zip, GZip, BZip2, LZW, and Tar written entirely in C# for the .NET platform.</description>
13+
<releaseNotes>Please see https://github.com/icsharpcode/SharpZipLib/wiki/Release-1.0 for more information.</releaseNotes>
14+
<copyright>Copyright © 2000-2016 AlphaSierraPapa for the SharpZipLib Team</copyright>
15+
<tags>Compression Library Zip Gzip BZip2 LZW Tar</tags>
16+
<dependencies>
17+
<dependency id="System" version="1.0.0" />
18+
</dependencies>
19+
</metadata>
20+
<files>
21+
<file src="ICSharpCode.SharpZipLib.dll" target="lib\Net45\" />
22+
<file src="ICSharpCode.SharpZipLib.dll" target="lib\dnx451\" />
23+
<file src="ICSharpCode.SharpZipLib.dll" target="lib\dnxcore50\" />
24+
</files>
25+
</package>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Write-Host "Installing .NET MicroFramework 4.3 ..."
2+
$msiPath = "$($env:USERPROFILE)\MicroFrameworkSDK43.MSI"
3+
(New-Object Net.WebClient).DownloadFile('http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=netmf&DownloadId=1423116&FileTime=130667921437670000&Build=21031', $msiPath)
4+
cmd /c start /wait msiexec /i $msiPath /quiet
5+
Write-Host "Installed" -ForegroundColor green
6+
7+
Write-Host "Installing .NET MicroFramework 4.4 ..."
8+
$msiPath = "$($env:USERPROFILE)\MicroFrameworkSDK44.MSI"
9+
(New-Object Net.WebClient).DownloadFile('https://github.com/NETMF/netmf-interpreter/releases/download/v4.4-RTW-20-Oct-2015/MicroFrameworkSDK.MSI', $msiPath)
10+
cmd /c start /wait msiexec /i $msiPath /quiet
11+
Write-Host "Installed" -ForegroundColor green

Build/run-nunit3-tests-debug.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
..\packages\NUnit.ConsoleRunner.3.2.0\tools\nunit3-console.exe /framework:net-4.5 /result:..\Documentation\nunit3-test-results-debug.xml ..\bin\Debug\ICSharpCode.SharpZipLib.Tests.dll

Build/run-nunit3-tests-release.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
..\packages\NUnit.ConsoleRunner.3.2.0\tools\nunit3-console.exe /framework:net-4.5 /result:..\Documentation\nunit3-test-results-release.xml ..\bin\Release\ICSharpCode.SharpZipLib.Tests.dll

Build/run-opencover.cmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
..\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:run-nunit3-tests-release.cmd -register:user -filter:+[ICSharpCode.SharpZipLib]* -output:..\Documentation\opencover-results-release.xml
2+
..\packages\ReportGenerator.2.4.4.0\tools\ReportGenerator.exe -reports:..\Documentation\opencover-results-release.xml -targetdir:..\Documentation\opencover

Documentation/nunit3-test-results-release.xml

Lines changed: 904 additions & 0 deletions
Large diffs are not rendered by default.

Documentation/opencover-results-release.xml

Lines changed: 26175 additions & 0 deletions
Large diffs are not rendered by default.

Documentation/opencover/ICSharpCode.SharpZipLib_Adler32.htm

Lines changed: 283 additions & 0 deletions
Large diffs are not rendered by default.

Documentation/opencover/ICSharpCode.SharpZipLib_BZip2.htm

Lines changed: 148 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)