Last active
January 18, 2017 09:02
-
-
Save pvandervelde/4171a3b81776132e2800a3f9b802fa43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Notes: | |
# - Minimal appveyor.yml file is an empty file. All sections are optional. | |
# - Indent each level of configuration with 2 spaces. Do not use tabs! | |
# - All section names are case-sensitive. | |
# - Section names should be unique on each level. | |
#---------------------------------# | |
# general configuration # | |
#---------------------------------# | |
# version format | |
version: 1.0.{build}-{branch} | |
# you can use {branch} name in version format too | |
# version: 1.0.{build}-{branch} | |
# branches to build | |
branches: | |
# blacklist | |
except: | |
- develop | |
- gh-pages | |
# Do not build on tags (GitHub and BitBucket) | |
skip_tags: true | |
# Maximum number of concurrent jobs for the project | |
max_jobs: 1 | |
#---------------------------------# | |
# environment configuration # | |
#---------------------------------# | |
# Build worker image (VM template) | |
image: Visual Studio 2015 | |
# environment variables | |
environment: | |
push_key: | |
secure: <ENCRYPTED_SSH_KEY_HERE> | |
# scripts that run after cloning repository | |
# install: | |
# to run script as a PowerShell command prepend it with ps: | |
# - ps: Write-Host 'This is PowerShell' | |
# batch commands start from cmd: | |
# - cmd: echo This is batch again | |
#---------------------------------# | |
# build configuration # | |
#---------------------------------# | |
# to run your custom scripts instead of automatic MSBuild | |
build_script: msbuild entrypoint.msbuild /t:build /v:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" | |
#---------------------------------# | |
# deployment configuration # | |
#---------------------------------# | |
# scripts to run before deployment | |
before_deploy: | |
- ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----`n" | |
- ps: $fileContent += $env:push_key.Replace(' ', "`n") | |
- ps: $fileContent += "`n-----END RSA PRIVATE KEY-----`n" | |
- ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent | |
- ps: $message = Get-Content push_message.txt | |
- ps: Set-AppveyorBuildVariable -Name PushMessage -Value $message | |
# to run your custom scripts instead of provider deployments | |
deploy_script: msbuild entrypoint.msbuild /t:deploy /v:diagnostic /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment