summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-07-12 15:26:30 +0200
committerAnatol Belski <ab@php.net>2017-07-12 15:37:40 +0200
commit2f606dc5e8173ffdfd9086c45dffeeababf478ce (patch)
treefb0c3c36ad4bee8e257749bb5d8bd03b703bca61
parent04cc2f6473e8439929ba8448f038058d5e20ba86 (diff)
downloadphp-git-2f606dc5e8173ffdfd9086c45dffeeababf478ce.tar.gz
Guard against AppVeyor losing deps issue
Possibly due to concurrent build cache updates or some changes in the remote image. Some locking mechanism still could be required.
-rw-r--r--appveyor/build_task.bat7
1 files changed, 7 insertions, 0 deletions
diff --git a/appveyor/build_task.bat b/appveyor/build_task.bat
index 4b59580cb7..4136455ab0 100644
--- a/appveyor/build_task.bat
+++ b/appveyor/build_task.bat
@@ -22,6 +22,13 @@ echo Updating dependencies in %DEPS_DIR%
cmd /c phpsdk_deps --update --no-backup --branch %BRANCH% --stability %STABILITY% --deps %DEPS_DIR%
if %errorlevel% neq 0 exit /b 3
+rem Something went wrong, most likely when concurrent builds were to fetch deps
+rem updates. It might be, that some locking mechanism is needed.
+if not exist "%DEPS_DIR%" (
+ cmd /c phpsdk_deps --update --force --no-backup --branch %BRANCH% --stability %STABILITY% --deps %DEPS_DIR%
+)
+if %errorlevel% neq 0 exit /b 3
+
cmd /c buildconf.bat --force
if %errorlevel% neq 0 exit /b 3