From 6ed93a6bc1f96dc9e6118939b80fb84661782089 Mon Sep 17 00:00:00 2001 From: Daniel Donenfeld Date: Thu, 7 Feb 2019 17:26:00 -0800 Subject: [PATCH] Change git commit command to succeed (currently just || with git status) if asm is unchanged (e.g. no sources are changed which impact asm which is generated) --- appveyor.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 1893b55..96c5004 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -131,12 +131,12 @@ on_success: - ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):x-oauth-basic@github.com`n" - git config --global user.email "dadonenf@microsoft.com" - git config --global user.name "Daniel Donenfeld" + - git config --global core.autocrlf false - cd %APPVEYOR_BUILD_FOLDER% - - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) + # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) - git checkout %APPVEYOR_REPO_BRANCH% - git add "asm/*" - - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) - - git commit -m "[skip ci] Update ASM for %APPVEYOR_BUILD_WORKER_IMAGE%_%GSL_CXX_STANDARD%_%USE_TOOLSET%_%PLATFORM%_%CONFIGURATION%" - - git push + # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) + - (git commit -m "[skip ci] Update ASM for %APPVEYOR_BUILD_WORKER_IMAGE%_%GSL_CXX_STANDARD%_%USE_TOOLSET%_%PLATFORM%_%CONFIGURATION%" && git push) || git status deploy: off