You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ombi/appveyor.yml

78 lines
2.2 KiB

6 years ago
version: 4.0.{build}
configuration: Release
6 years ago
os: Visual Studio 2017
6 years ago
6 years ago
environment:
6 years ago
nodejs_version: "9.8.0"
6 years ago
typescript_version: "3.0.1"
github_auth_token:
secure: H/7uCrjmWHGJxgN3l9fbhhdVjvvWI8VVF4ZzQqeXuJwAf+PgSNBdxv4SS+rMQ+RH
6 years ago
# Do not build on tags (GitHub and BitBucket)
skip_tags: true
6 years ago
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
- cmd: set path=%programfiles(x86)%\\Microsoft SDKs\TypeScript\3.0;%path%
- cmd: tsc -v
build_script:
6 years ago
- ps: |
$deployBranches = @{
6 years ago
'feature/v4' = $true,
'develop' = $true,
'master' = $true
6 years ago
}
6 years ago
if(($env:APPVEYOR_REPO_BRANCH -in $deployBranches || $env:APPVEYOR_REPO_COMMIT_MESSAGE -Match '!deploy') && $env:APPVEYOR_REPO_COMMIT_MESSAGE -notlike '!build') {
6 years ago
Write-Output "This is a deployment build"
./build.ps1 --settings_skipverification=true --target=build
}
else
{
Write-Output "This is a not a deployment build"
./build.ps1 --settings_skipverification=true --target=build
}
6 years ago
6 years ago
skip_commits:
files:
- '**/*.md'
6 years ago
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"
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))
#cache:
#- '%USERPROFILE%\.nuget\packages'
deploy:
- provider: GitHub
release: Ombi v$(appveyor_build_version)
auth_token:
secure: jDpp1/WUQl3uN41fNI3VeZoRZbDiDfs3GPQ1v+C5ZNE3cWdnUvuJfCCfUbYUV1Rp
draft: true
on:
branch: master