]> granicus.if.org Git - php/commitdiff
Guard against AppVeyor losing deps issue
authorAnatol Belski <ab@php.net>
Wed, 12 Jul 2017 13:26:30 +0000 (15:26 +0200)
committerAnatol Belski <ab@php.net>
Wed, 12 Jul 2017 13:37:40 +0000 (15:37 +0200)
Possibly due to concurrent build cache updates or some changes in
the remote image. Some locking mechanism still could be required.

appveyor/build_task.bat

index 4b59580cb77225dbba128ad84beff3744b6e65fb..4136455ab04149ba25a170979344d1db19fb1bcf 100644 (file)
@@ -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