Skip to content

Commit a63e43a

Browse files
committed
BadgesBadgesBadgesBadges
* Added a Coverity badge * Added a condition to only send scheduled builds to Coverity * Install PublishCoverity from NuGet * Remove tag push for GitHub * Add coverity.zip as build artifact
1 parent 1111251 commit a63e43a

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

Build/ICSharpCode.SharpZipLib.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata minClientVersion="2.0">
44
<id>ICSharpCode.SharpZipLib-dogfood</id>
5-
<!-- version --><!-- passed in with -Version %APPVEYOR_BUILD_VERSION% -->
5+
<version>1.0</version>
66
<title>SharpZipLib-dogfood</title>
77
<authors>IC#Code</authors>
88
<owners>IC#Code</owners>

Build/run-appveyor-build.ps1

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
$publishCoverityExe = $env:APPVEYOR_BUILD_FOLDER + "\packages\PublishCoverity.0.11.0\tools\PublishCoverity.exe";
21
# Define build command.
32
$buildCmd = "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe";
43
$buildArgs = @(
@@ -10,13 +9,14 @@ $buildArgs = @(
109
"/p:Platform=Any CPU");
1110

1211
# If build is not a scheduled one, then simply build the project with MSBuild.
13-
#if ($env:APPVEYOR_SCHEDULED_BUILD -ne "True") {
14-
# & $buildCmd $buildArgs
12+
if ($env:APPVEYOR_SCHEDULED_BUILD -ne "True") {
13+
& $buildCmd $buildArgs
1514
# & nuget pack <project_file> -OutputDirectory <temp_path>
16-
# return # exit script
17-
#}
15+
return # exit script
16+
}
1817

1918
# Else, build project with Coverity Scan.
19+
$publishCoverityExe = $env:APPVEYOR_BUILD_FOLDER + "\packages\PublishCoverity.0.11.0\tools\PublishCoverity.exe";
2020
"Building project with Coverity Scan..."
2121
& cov-build --dir Documentation\cov-int $buildCmd $buildArgs;
2222

@@ -25,6 +25,3 @@ $buildArgs = @(
2525

2626
# Upload scan data.
2727
& $publishCoverityExe publish -z Documentation\coverity.zip -r McNeight/SharpZipLib -t $env:Coverity_Token -e $env:Coverity_Email -d "AppVeyor scheduled build";
28-
29-
30-

ICSharpCode.SharpZipLib.Tests/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.2.1" targetFramework="net45" />
1212
<package id="NUnit.Extension.VSProjectLoader" version="3.2.1" targetFramework="net45" />
1313
<package id="OpenCover" version="4.6.519" targetFramework="net45" />
14+
<package id="PublishCoverity" version="0.11.0" targetFramework="net45" developmentDependency="true" />
1415
<package id="ReportGenerator" version="2.4.5.0" targetFramework="net45" />
1516
</packages>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SharpZipLib [![Join the chat at https://gitter.im/icsharpcode/SharpZipLib](https://badges.gitter.im/icsharpcode/SharpZipLib.svg)](https://gitter.im/icsharpcode/SharpZipLib?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Stories in Ready](https://badge.waffle.io/icsharpcode/SharpZipLib.svg?label=ready&title=Ready)](http://waffle.io/icsharpcode/SharpZipLib) [![Coverage Status](https://coveralls.io/repos/github/McNeight/SharpZipLib/badge.svg?branch=master)](https://coveralls.io/github/McNeight/SharpZipLib?branch=master)
1+
# SharpZipLib [![Join the chat at https://gitter.im/icsharpcode/SharpZipLib](https://badges.gitter.im/icsharpcode/SharpZipLib.svg)](https://gitter.im/icsharpcode/SharpZipLib?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Stories in Ready](https://badge.waffle.io/icsharpcode/SharpZipLib.svg?label=ready&title=Ready)](http://waffle.io/icsharpcode/SharpZipLib) [![Coverage Status](https://coveralls.io/repos/github/McNeight/SharpZipLib/badge.svg?branch=master)](https://coveralls.io/github/McNeight/SharpZipLib?branch=master) [![Coverity Scan Build Status](https://scan.coverity.com/projects/8519/badge.svg)](https://scan.coverity.com/projects/mcneight-sharpziplib)
22

33
<table>
44
<tr>

appveyor.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,10 @@ artifacts:
183183
name: BuildRelease
184184
- path: bin\**\*.nupkg
185185
name: NuGet
186-
- path: Documentation\**\*.xml
186+
- path: Documentation\*.xml
187187
name: TestResults
188+
- path: Documentation\coverity.zip
189+
name: Coverity
188190

189191
#---------------------------------#
190192
# deployment configuration #
@@ -203,7 +205,7 @@ deploy:
203205
prerelease: true
204206
on:
205207
branch: master # release from master branch only
206-
appveyor_repo_tag: true # deploy on tag push only
208+
# appveyor_repo_tag: true # deploy on tag push only
207209
- provider: NuGet
208210
skip_symbols: false
209211
symbol_server: https://ci.appveyor.com/nuget/mcneight-93sw9hg8ve02/api/v2/package

0 commit comments

Comments
 (0)