Appveyor driver and build docs
This commit is contained in:
Родитель
927b269e37
Коммит
a97a562130
10
README.md
10
README.md
|
@ -4,7 +4,15 @@ Tools for managing and automating your Visual Studio Team Services Agents.
|
|||
|
||||
## Builds
|
||||
|
||||
The `master` branch is manually built and deployed to the [PowerShell Gallery](https://www.powershellgallery.com/packages/VSTSAgent).
|
||||
### Master
|
||||
[![Build status](https://ci.appveyor.com/api/projects/status/pnw34lbpygqyttb9/branch/master?svg=true)](https://ci.appveyor.com/project/jwittner/vstsagent-powershell/branch/master)
|
||||
|
||||
The `master` branch is automatically built and deployed to the [PowerShell Gallery](https://www.powershellgallery.com/packages/VSTSAgent).
|
||||
|
||||
### Develop
|
||||
[![Build status](https://ci.appveyor.com/api/projects/status/pnw34lbpygqyttb9/branch/develop?svg=true)](https://ci.appveyor.com/project/jwittner/vstsagent-powershell/branch/develop)
|
||||
|
||||
The `develop` branch is automatically built and deployed as a prerelease module to the [PowerShell Gallery](https://www.powershellgallery.com/packages/VSTSAgent).
|
||||
|
||||
## Installation
|
||||
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
version: '{build}'
|
||||
skip_tags: true
|
||||
pull_requests:
|
||||
do_not_increment_build_number: true
|
||||
environment:
|
||||
NugetAPIKey:
|
||||
secure: zvkaZiaBXVko+3ZzuSb7W6DTUJmHX98XgEhKs28SnGD+4TM3gzhPxVnNWSmBhXEx
|
||||
install:
|
||||
- ps: >-
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
Install-PackageProvider -Name NuGet -Force
|
||||
|
||||
Remove-Module 'PowerShellGet' -Force -ErrorAction SilentlyContinue -Verbose
|
||||
|
||||
Install-Module 'PowerShellGet' -Scope CurrentUser -Force -AllowClobber -Verbose
|
||||
build_script:
|
||||
- ps: .\build.ps1 -Revision "$env:APPVEYOR_BUILD_NUMBER" -Suffix "$env:APPVEYOR_REPO_BRANCH"
|
||||
deploy_script:
|
||||
- ps: >-
|
||||
$publish = Start-Process 'powershell' -Wait -PassThru -RedirectStandardError .\deploy_error.log -RedirectStandardOutput .\deploy_out.log { Publish-Module -Path .\VSTSAgent -NugetAPIKey $env:NugetAPIKey -Verbose }
|
||||
|
||||
Get-Content .\deploy_output.log -ErrorAction SilentlyContinue | Write-Host
|
||||
|
||||
Get-Content .\deploy_error.log -ErrorAction SilentlyContinue | Write-Host -ForegroundColor Red
|
||||
|
||||
if( $publish.ExitCode -ne 0 ) { Write-Error "Publish step failed - see above logs"}
|
||||
for:
|
||||
-
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
build_script:
|
||||
- ps: .\build.ps1 -Revision "$env:APPVEYOR_BUILD_NUMBER"
|
||||
-
|
||||
branches:
|
||||
only:
|
||||
- develop
|
Загрузка…
Ссылка в новой задаче