doushen2154
2017-02-19 20:35
浏览 94
已采纳

“php composer.phar自我更新”挂起构建

I have a project hosted on GitHub and integrated in AppVeyor.

Here is my appveyor.yml file:

build: false
clone_depth: 1
clone_folder: c:\projects\asynctweetsbundle

# https://github.com/travis-ci/travis-ci/issues/3005#issuecomment-71320541
skip_commits:
    message: /.*\[skip appveyor\].*/

cache:
    - '%LOCALAPPDATA%\Composer\files'
    - c:\projects\asynctweetsbundle\composer.phar

init:
    - SET PATH=c:\php;%PATH%
    - SET COMPOSER_NO_INTERACTION=1
    - SET ANSICON=121x90 (121x90)
    - REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f

install:
    - mkdir c:\php && cd c:\php
    - appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/cacert.pem
    - appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.5.9-nts-Win32-VC11-x86.zip
    - 7z x php-5.5.9-nts-Win32-VC11-x86.zip -y >nul
    - del /Q *.zip
    - copy /Y php.ini-development php.ini
    - echo max_execution_time=600 >> php.ini
    - echo date.timezone="UTC" >> php.ini
    - echo extension_dir=ext >> php.ini
    - echo zend_extension=php_opcache.dll >> php.ini
    - echo opcache.enable_cli=1 >> php.ini
    - echo extension=php_openssl.dll >> php.ini
    - echo extension=php_apcu.dll >> php.ini
    - echo apc.enable_cli=1 >> php.ini
    - echo extension=php_intl.dll >> php.ini
    - echo extension=php_mbstring.dll >> php.ini
    - echo extension=php_fileinfo.dll >> php.ini
    - echo extension=php_pdo_sqlite.dll >> php.ini
    - echo extension=php_curl.dll >> php.ini
    - echo curl.cainfo=c:\php\cacert.pem >> php.ini
    - cd c:\projects\asynctweetsbundle
    - echo "OK"
    - IF NOT EXIST composer.phar (appveyor DownloadFile https://getcomposer.org/download/1.3.2/composer.phar)
    - echo "OK"
    - php composer.phar self-update -vvv
    - echo "OK"
    - php composer.phar require "symfony/symfony:2.8.*" -vv --profile --no-progress --ansi

test_script:
    - cd c:\projects\asynctweetsbundle
    - php vendor/bin/phpunit --colors=never
    - php vendor/bin/behat

It is based on the appveyor.yml file from Symfony.

Here is the output:

Build started
SET PATH=c:\php;%PATH%
SET COMPOSER_NO_INTERACTION=1
SET ANSICON=121x90 (121x90)
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
The operation completed successfully.
git clone -q --depth=1 --branch=feature/#32-fix-test-on-AppVeyor https://github.com/alexislefebvre/AsyncTweetsBundle.git c:\projects\asynctweetsbundle
git checkout -qf ce1f8da89644da6616bf374d1ac1d7fb402e1b8f
Running Install scripts
mkdir c:\php && cd c:\php
appveyor DownloadFile https://raw.githubusercontent.com/symfony/binary-utils/master/cacert.pem
Downloading cacert.pem (253,628 bytes)...100%
appveyor DownloadFile http://windows.php.net/downloads/releases/archives/php-5.5.9-nts-Win32-VC11-x86.zip
Downloading php-5.5.9-nts-Win32-VC11-x86.zip (19,181,918 bytes)...100%
7z x php-5.5.9-nts-Win32-VC11-x86.zip -y >nul
del /Q *.zip
copy /Y php.ini-development php.ini
        1 file(s) copied.
echo max_execution_time=600 >> php.ini
echo date.timezone="UTC" >> php.ini
echo extension_dir=ext >> php.ini
echo zend_extension=php_opcache.dll >> php.ini
echo opcache.enable_cli=1 >> php.ini
echo extension=php_openssl.dll >> php.ini
echo extension=php_apcu.dll >> php.ini
echo apc.enable_cli=1 >> php.ini
echo extension=php_intl.dll >> php.ini
echo extension=php_mbstring.dll >> php.ini
echo extension=php_fileinfo.dll >> php.ini
echo extension=php_pdo_sqlite.dll >> php.ini
echo extension=php_curl.dll >> php.ini
echo curl.cainfo=c:\php\cacert.pem >> php.ini
cd c:\projects\asynctweetsbundle
echo "OK"
"OK"
IF NOT EXIST composer.phar (appveyor DownloadFile https://getcomposer.org/download/1.3.2/composer.phar)
Downloading composer.phar (1,816,271 bytes)...100%
echo "OK"
"OK"
php composer.phar self-update -vvv

The build hangs on the php composer.phar self-update -vvv step, as you can see on this build.

How to stop Composer hanging?

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题