File: coverity_upload_script.ps

package info (click to toggle)
vcmi 0.99%2Bdfsg%2Bgit20190113.f06c8a87-2
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye
  • size: 11,136 kB
  • sloc: cpp: 142,615; sh: 315; objc: 248; makefile: 32; ansic: 28; python: 13
file content (17 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
7z a "$Env:APPVEYOR_BUILD_FOLDER\$Env:APPVEYOR_PROJECT_NAME.zip" "$Env:APPVEYOR_BUILD_FOLDER\build_$Env:VCMI_BUILD_PLATFORM\cov-int\"

# cf. http://stackoverflow.com/a/25045154/335418
Remove-item alias:curl

Write-Host "Uploading Coverity analysis result..." -ForegroundColor "Green"

curl --silent --show-error `
     --output curl-out.txt `
     --form token="$Env:coverity_token" `
     --form email="$Env:coverity_email" `
     --form "file=@$Env:APPVEYOR_BUILD_FOLDER\$Env:APPVEYOR_PROJECT_NAME.zip" `
     --form version="$Env:APPVEYOR_REPO_COMMIT" `
     --form description="CI server scheduled build." `
     https://scan.coverity.com/builds?project=vcmi%2Fvcmi

cat .\curl-out.txt