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

“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条回答 默认 最新

  • douyi1341 2017-02-19 21:15
    关注

    Below is a screenshot of VM currently running your build. Hope that helps.

    enter image description here

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 CMAKE+VS2019+QT5.15.2组合进行二次编译
  • ¥15 nginx 配置静态html访问 ,后台登录时页面始终被重定向到登录页,无法访问到后台的静态html页
  • ¥20 自动登录的j2ee程序编译
  • ¥15 fluent模拟静态气体扩散
  • ¥15 java根据模板,生成word文档,需要带目录
  • ¥15 广告联盟的兜底广告是什么意思
  • ¥15 如何证明高斯噪声的包络公式
  • ¥150 寻找王者荣耀开发作者,合作或者解答
  • ¥15 关于cpci总线的几个问题,别用人工智能回答
  • ¥15 乳腺癌数据集 相关矩阵 特征选择