Skip to content

Commit 3c6435e

Browse files
committed
Coverity Integration
1 parent 6192bce commit 3c6435e

2 files changed

Lines changed: 41 additions & 6 deletions

File tree

Build/run-appveyor-build.ps1

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
$publishCoverityExe = ".\packages\PublishCoverity.0.11.0\tools\PublishCoverity.exe";
2+
# Define build command.
3+
$buildCmd = "C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe";
4+
$buildArgs = @(
5+
"ICSharpCode.SharpZipLib.sln"
6+
"/l:C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll",
7+
"/m",
8+
"/p:Configuration=Release",
9+
"/p:Platform=Any CPU");
10+
11+
# If build is not a scheduled one, then simply build the project with MSBuild.
12+
#if ($env:APPVEYOR_SCHEDULED_BUILD -ne "True") {
13+
# & $buildCmd $buildArgs
14+
# & nuget pack <project_file> -OutputDirectory <temp_path>
15+
# return # exit script
16+
#}
17+
18+
# Else, build project with Coverity Scan.
19+
"Building project with Coverity Scan..."
20+
& cov-build --dir Documentation\cov-int $buildCmd $buildArgs;
21+
22+
# Compress scan data.
23+
& $publishCoverityExe compress -o Documentation\coverity.zip -i Documentation\cov-int;
24+
25+
# Upload scan data.
26+
& $publishCoverityExe publish -z Documentation\coverity.zip -r McNeight/SharpZipLib -t $env:Coverity_Token -e $env:Coverity_Email -d "AppVeyor scheduled build";
27+
28+
29+

appveyor.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,22 @@ configuration: Release
101101
# ios: true
102102

103103
build:
104-
parallel: true
105-
project: ICSharpCode.SharpZipLib.sln
106-
publish_nuget: true
107-
publish_nuget_symbols: true
108-
include_nuget_references: true
104+
# parallel: true
105+
# project: ICSharpCode.SharpZipLib.sln
106+
# publish_nuget: true
107+
# publish_nuget_symbols: true
108+
# include_nuget_references: true
109109

110110
# MSBuild verbosity level
111-
verbosity: normal
111+
# verbosity: normal
112112

113113
environment:
114114
COVERALLS_REPO_TOKEN:
115115
secure: B/NQfoRYUnKLGS5KJSJrGBvcYD0Jv+coudjJMY2jf+gqvqDWral9CDmv2i0WovY7
116+
COVERITY_TOKEN:
117+
secure: n9NA/kasTqxUc8UBfQ2cBlZcDyFJvko1gcMzVTDvZq8=
118+
COVERITY_EMAIL:
119+
secure: j/N0ZmnUZYKnS2nGocKyNsXoKQBfWTBOg+VI4q7yMn4=
116120
# scripts to run before build
117121
before_build:
118122
- cmd: nuget restore ICSharpCode.SharpZipLib.sln
@@ -125,6 +129,7 @@ after_build:
125129

126130
# to run your custom scripts instead of automatic MSBuild
127131
build_script:
132+
- ps: Build\run-appveyor-build.ps1
128133

129134
# to disable automatic builds
130135
#build: off
@@ -202,6 +207,7 @@ deploy:
202207
- provider: NuGet
203208
api_key:
204209
secure: z+iy8Iv5qqQghGrATRbx2I921HCHD7x7/xIrmkGGauMgpA/d1DBoOVUNNCHLE9Dj
210+
skip_symbols: false
205211
artifact: NuGet
206212

207213
#---------------------------------#

0 commit comments

Comments
 (0)