|
|
|
@ -28,10 +28,12 @@ build_script:
|
|
|
|
|
|
|
|
|
|
If(($env:APPVEYOR_REPO_BRANCH -in $deployBranches -Or $env:APPVEYOR_REPO_COMMIT_MESSAGE -Match '!deploy') -And $env:APPVEYOR_REPO_COMMIT_MESSAGE -NotMatch '!build') {
|
|
|
|
|
Write-Output "This is a deployment build"
|
|
|
|
|
./build.ps1 --settings_skipverification=true --target=build
|
|
|
|
|
$env:Deploy = true
|
|
|
|
|
./build.ps1 --settings_skipverification=true
|
|
|
|
|
}
|
|
|
|
|
Else
|
|
|
|
|
{
|
|
|
|
|
$emv:Deploy = false
|
|
|
|
|
Write-Output "This is a not a deployment build"
|
|
|
|
|
./build.ps1 --settings_skipverification=true --target=build
|
|
|
|
|
}
|
|
|
|
@ -41,29 +43,15 @@ skip_commits:
|
|
|
|
|
- '**/*.md'
|
|
|
|
|
|
|
|
|
|
after_build:
|
|
|
|
|
- cmd: >-
|
|
|
|
|
|
|
|
|
|
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\windows.zip"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\osx.tar.gz"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\linux.tar.gz"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\linux-arm.tar.gz"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\windows-32bit.zip"
|
|
|
|
|
|
|
|
|
|
- ps: |
|
|
|
|
|
If($env:Deploy -eq true)
|
|
|
|
|
{
|
|
|
|
|
Get-ChildItem .\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
|
|
|
|
Get-ChildItem .\*.gz | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
appveyor PushArtifact "%APPVEYOR_BUILD_FOLDER%\src\Ombi\bin\Release\netcoreapp2.2\linux-arm64.tar.gz"
|
|
|
|
|
- ps: >-
|
|
|
|
|
$wc = New-Object 'System.Net.WebClient'
|
|
|
|
|
|
|
|
|
|
$wc.UploadFile("https://ci.appveyor.com/api/testresults/xunit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\src\**\TestResults\Test*.trx))
|
|
|
|
|
|
|
|
|
|
$wc.UploadFile("https://ci.appveyor.com/api/testresults/mstest/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\src\**\TestResults\Test*.trx))
|
|
|
|
|
|
|
|
|
|
#cache:
|
|
|
|
|
#- '%USERPROFILE%\.nuget\packages'
|
|
|
|
|