com php-src: Guard against AppVeyor losing deps issue: appveyor/build_task.bat

From: Date: Wed, 12 Jul 2017 13:37:40 +0000
Subject: com php-src: Guard against AppVeyor losing deps issue: appveyor/build_task.bat
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98532@lists.php.net to get a copy of this message
Commit: 2f606dc5e8173ffdfd9086c45dffeeababf478ce Author: Anatol Belski <ab@php.net> Wed, 12 Jul 2017 15:26:30 +0200 Parents: 04cc2f6473e8439929ba8448f038058d5e20ba86 Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2f606dc5e8173ffdfd9086c45dffeeababf478ce Log: 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. Changed paths: M appveyor/build_task.bat Diff: diff --git a/appveyor/build_task.bat b/appveyor/build_task.bat index 4b59580..4136455 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

« previous php.cvs (#98532) next »