1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- param($Name = $null)
- cd $PSScriptRoot
- ls scripts\*.ps1 | % { . $_ }
- # used when running locally
- if (Test-Path update_vars.ps1) { . ./update_vars.ps1 }
- $options = @{
- Timeout = $env:au_timeout
- Push = $true
- Threads = $env:au_threads
- Force = $false
- Mail = if ($env:mail_user) {
- $enableSsl = $true
- if ($env:mail_enablessl -eq 'false') {
- $enableSsl = $false
- }
- @{
- To = $env:mail_user
- Server = $env:mail_server
- UserName = $env:mail_user
- Password = $env:mail_pass
- Port = $env:mail_port
- EnableSsl = $enableSsl
- }
- } else {}
- Gist_ID = $Env:Gist_ID
- Script = {
- param($Phase, $Info)
- if ($Phase -ne 'END') { return }
- Save-RunInfo
- Save-Gist
- Save-Git
- }
- }
- if ($env:au_push -eq 'false') {
- $options.Push = $false
- }
- if ($env:au_force -eq 'true') {
- $options.Force = $true
- }
- Update-AUPackages -Name $Name -Options $options | ft
- $global:updateall = Import-CliXML $PSScriptRoot\update_info.xml
- #Uncomment to fail the build on AppVeyor on any package error
- #if ($updateall.error_count.total) { throw 'Errors during update' }
|