mirror of
https://github.com/fergalmoran/picard.git
synced 2026-03-06 21:35:09 +00:00
appveyor: build improvements
- ensure failing build if tests fail - always build msix, even if unsigned
This commit is contained in:
@@ -73,6 +73,9 @@ test_script:
|
||||
pytest -ra --junitxml=test-results.xml
|
||||
$wc = New-Object 'System.Net.WebClient'
|
||||
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test-results.xml))
|
||||
If ($LastExitCode -ne 0) {
|
||||
Throw "Tests failed"
|
||||
}
|
||||
- dist\picard\fpcalc -version
|
||||
|
||||
for:
|
||||
@@ -95,10 +98,8 @@ for:
|
||||
build_script:
|
||||
- ps: |
|
||||
$Certificate = @(Get-ChildItem cert:\CurrentUser\My -codesign)[0]
|
||||
if ($Certificate) {
|
||||
& .\scripts\package\win-package-appx.ps1 -BuildNumber $env:APPVEYOR_BUILD_NUMBER -Certificate $Certificate
|
||||
Push-AppveyorArtifact dist\*.msix
|
||||
}
|
||||
& .\scripts\package\win-package-appx.ps1 -BuildNumber $env:APPVEYOR_BUILD_NUMBER -Certificate $Certificate
|
||||
Push-AppveyorArtifact dist\*.msix
|
||||
|
||||
deploy:
|
||||
- provider: GitHub
|
||||
|
||||
@@ -12,7 +12,8 @@ Function CodeSignBinary {
|
||||
$BinaryPath
|
||||
)
|
||||
If ($Certificate) {
|
||||
Set-AuthenticodeSignature -FilePath $BinaryPath -Certificate $Certificate
|
||||
Set-AuthenticodeSignature -FilePath $BinaryPath -Certificate $Certificate `
|
||||
-ErrorAction Stop
|
||||
} Else {
|
||||
Write-Output "Skip signing $BinaryPath"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user