Skip to content

Commit

Permalink
Guard against AppVeyor losing deps issue
Browse files Browse the repository at this point in the history
Possibly due to concurrent build cache updates or some changes in
the remote image. Some locking mechanism still could be required.
  • Loading branch information
weltling committed Jul 12, 2017
1 parent 04cc2f6 commit 2f606dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions appveyor/build_task.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2f606dc

Please sign in to comment.