forked from pbatard/rufus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Also re-instate the _coverity.cmd script and try to fix AppVeyor Coverity uploads
- Loading branch information
Showing
7 changed files
with
45 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@rem *** Internal developer script to run Coverity *** | ||
@echo off | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" | ||
set COV_DIR=B:\cov-analysis-win64-2019.03 | ||
set PATH=%PATH%;%COV_DIR%\bin | ||
set PWD=%~dp0 | ||
set TARGET=x86 | ||
rmdir cov-int /s /q >NUL 2>NUL | ||
rmdir %TARGET% /s /q >NUL 2>NUL | ||
del cov-int.zip >NUL 2>NUL | ||
mkdir cov-int | ||
cov-build --dir cov-int msbuild rufus.sln /p:Configuration=Release,Platform=%TARGET% /maxcpucount | ||
rem *** for when/if Coverity manage to clean their act | ||
rem cov-build --dir cov-int C:\msys64\usr\bin\bash -cl "export PATH=/mingw32/bin:$PATH; cd /c/rufus; ./configure --build=i686-w64-mingw32 --host=i686-w64-mingw32 --disable-debug; make -j4" | ||
rem *** zip script by Peter Mortensen - http://superuser.com/a/111266/286681 | ||
echo Set objArgs = WScript.Arguments> zip.vbs | ||
echo InputFolder = objArgs(0)>> zip.vbs | ||
echo ZipFile = objArgs(1)>> zip.vbs | ||
echo CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile, True).Write "PK" ^& Chr(5) ^& Chr(6) ^& String(18, vbNullChar)>> zip.vbs | ||
echo Set objShell = CreateObject("Shell.Application")>> zip.vbs | ||
echo Set source = objShell.NameSpace(InputFolder)>> zip.vbs | ||
echo objShell.NameSpace(ZipFile).CopyHere(source)>> zip.vbs | ||
echo wScript.Sleep 8000>> zip.vbs | ||
CScript zip.vbs %PWD%cov-int %PWD%cov-int.zip | ||
del zip.vbs | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,6 @@ skip_commits: | |
- '**/*.xml' | ||
|
||
environment: | ||
COVERITY_SCAN_PROJECT_NAME: "pbatard/rufus" | ||
COVERITY_SCAN_NOTIFICATION_EMAIL: "[email protected]" | ||
COVERITY_SCAN_TOKEN: | ||
secure: XZADvwlRFo57sBA54pBH2oVT/eR/OytZYY/sCKq61io= | ||
global: | ||
|
@@ -77,15 +75,12 @@ build_script: | |
C:\msys64\usr\bin\bash -lc "export PATH=/mingw$env:BITS/bin:`$PATH; cd /c/projects/rufus; mkdir -p m4; ./configure --build=$env:PLATFORM-w64-mingw32 --host=$env:PLATFORM-w64-mingw32 --disable-debug; make -j4"; | ||
} | ||
Coverity { | ||
$PUBLISHCOVERITY = "$env:APPVEYOR_BUILD_FOLDER\PublishCoverity\tools\PublishCoverity.exe"; | ||
if (!"$env:COVERITY_SCAN_TOKEN") { | ||
Write-Output "Not running Coverity due to missing credential."; | ||
return; | ||
} | ||
& nuget install PublishCoverity -o "$env:APPVEYOR_BUILD_FOLDER" -excludeversion; | ||
& cov-build.exe --dir cov-int msbuild rufus.sln /m /p:Configuration=$env:CONFIGURATION,Platform=$env:PLATFORM /l:$APPVEYOR_LOGGER; | ||
& $PUBLISHCOVERITY compress --nologo -i "$env:APPVEYOR_BUILD_FOLDER\cov-int" -o "$env:APPVEYOR_BUILD_FOLDER\coverity.zip" --overwrite; | ||
& $PUBLISHCOVERITY publish --nologo -t $env:COVERITY_SCAN_TOKEN -e $env:COVERITY_SCAN_NOTIFICATION_EMAIL -r $env:COVERITY_SCAN_PROJECT_NAME -z "$env:APPVEYOR_BUILD_FOLDER\coverity.zip" -d "Appveyor build." --codeVersion $env:APPVEYOR_BUILD_VERSION; | ||
Get-ChildItem -Path ./ -Recurse | Remove-Item -Force -Recurse; | ||
cov-build.exe --dir cov-int msbuild rufus.sln /m /p:Configuration=$env:CONFIGURATION,Platform=$env:PLATFORM /l:$APPVEYOR_LOGGER; | ||
7z a cov-int.zip cov-int | ||
curl --form token=$env:COVERITY_SCAN_TOKEN --form [email protected] --form file=cov-int.zip --form version="$env:APPVEYOR_BUILD_VERSION" --form description="Appveyor build" https://scan.coverity.com/builds?project=pbatard%2Frufus | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters