Skip to content

Commit

Permalink
BadgesBadgesBadgesBadges
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
McNeight committed May 19, 2016
1 parent 1111251 commit a63e43a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Build/ICSharpCode.SharpZipLib.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata minClientVersion="2.0">
<id>ICSharpCode.SharpZipLib-dogfood</id>
<!-- version --><!-- passed in with -Version %APPVEYOR_BUILD_VERSION% -->
<version>1.0</version>
<title>SharpZipLib-dogfood</title>
<authors>IC#Code</authors>
<owners>IC#Code</owners>
Expand Down
13 changes: 5 additions & 8 deletions Build/run-appveyor-build.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$publishCoverityExe = $env:APPVEYOR_BUILD_FOLDER + "\packages\PublishCoverity.0.11.0\tools\PublishCoverity.exe";
# Define build command.
$buildCmd = "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe";
$buildArgs = @(
Expand All @@ -10,13 +9,14 @@ $buildArgs = @(
"/p:Platform=Any CPU");

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

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

Expand All @@ -25,6 +25,3 @@ $buildArgs = @(

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



1 change: 1 addition & 0 deletions ICSharpCode.SharpZipLib.Tests/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.2.1" targetFramework="net45" />
<package id="NUnit.Extension.VSProjectLoader" version="3.2.1" targetFramework="net45" />
<package id="OpenCover" version="4.6.519" targetFramework="net45" />
<package id="PublishCoverity" version="0.11.0" targetFramework="net45" developmentDependency="true" />
<package id="ReportGenerator" version="2.4.5.0" targetFramework="net45" />
</packages>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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)
# 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)

<table>
<tr>
Expand Down
6 changes: 4 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,10 @@ artifacts:
name: BuildRelease
- path: bin\**\*.nupkg
name: NuGet
- path: Documentation\**\*.xml
- path: Documentation\*.xml
name: TestResults
- path: Documentation\coverity.zip
name: Coverity

#---------------------------------#
# deployment configuration #
Expand All @@ -203,7 +205,7 @@ deploy:
prerelease: true
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
# appveyor_repo_tag: true # deploy on tag push only
- provider: NuGet
skip_symbols: false
symbol_server: https://ci.appveyor.com/nuget/mcneight-93sw9hg8ve02/api/v2/package
Expand Down

0 comments on commit a63e43a

Please sign in to comment.