From 91c3d4afa5a70b2cc2795a157419a900be2b571f Mon Sep 17 00:00:00 2001 From: Daniel Donenfeld Date: Thu, 14 Feb 2019 11:36:22 -0800 Subject: [PATCH] Add some debugging, fix env variable exists check --- appveyor.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index bdf2b3a..c25296a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -137,14 +137,21 @@ test_script: before_deploy: - ps: | - if($env:APPVEYOR_PULL_REQUEST_NUMBER -eq "") { + if(-not (Test-Path env:APPVEYOR_PULL_REQUEST_NUMBER)) { # Only push asm during CI. Credentials are not available during a PR + Write-Host "[before_deploy] Not a PR, pushing asm!" + git config --global credential.helper store Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" | Out-Null git config --global user.email "dadonenf@microsoft.com" git config --global user.name "Daniel Donenfeld" cd %APPVEYOR_BUILD_FOLDER% + + Write-Host "[before_deploy] About to call push_asm batch script!" + asm\scripts\push_asm.bat + + Write-Host "[before_deploy] after push asm!" } deploy_script: