From 91c9136347bf25afba3e4b1cae9bca4e97de8be3 Mon Sep 17 00:00:00 2001 From: Gator96100 Date: Mon, 5 Oct 2020 13:18:18 +0200 Subject: [PATCH] Moved cache creation to on_finish --- appveyor.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 28ced036e..cff59e737 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -265,16 +265,6 @@ build_script: #ProxSpace - Write-Host "ProxSpace: create new cache..." -NoNewLine - - ExecMinGWCmd 'yes | pacman -Sc > /dev/null 2>&1' - - Remove-Item -Recurse -Force -Path "$env:proxspace_cache_path" -ErrorAction SilentlyContinue - - Move-Item -Path "$env:proxspace_path\msys2\var\cache" -Destination "$env:proxspace_cache_path" -Force - - Write-Host "[ OK ]" -ForegroundColor Gree - Write-Host "---------- PS make ----------" -ForegroundColor Yellow $TestTime=[System.Environment]::TickCount @@ -333,4 +323,17 @@ on_success: on_failure: - ps: Write-Host "Build error." -ForegroundColor Red on_finish: -- 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')) + + Write-Host "ProxSpace: create new cache..." -NoNewLine + + cd $env:proxspace_path + + ./runme64.bat -c "yes | pacman -Sc > /dev/null 2>&1" + + Remove-Item -Recurse -Force -Path "$env:proxspace_cache_path" -ErrorAction SilentlyContinue + + Move-Item -Path "$env:proxspace_path\msys2\var\cache" -Destination "$env:proxspace_cache_path" -Force + + Write-Host "[ OK ]" -ForegroundColor Gree