pull/3895/head
Jamie Rees 6 years ago
parent fadffaf891
commit b7e909b1e4

@ -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'

@ -135,7 +135,7 @@ Task("Gulp Publish")
Task("TSLint")
.Does(() =>
{
Yarn.FromPath(uiProjectDir).RunScript("lint");
//Yarn.FromPath(uiProjectDir).RunScript("lint");
});
Task("PrePublish")

Loading…
Cancel
Save