0
我有一個項目託管在GitHub上並集成在AppVeyor中。「php composer.phar自更新」掛起構建
這裏是我的appveyor.yml
文件:
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
它是基於appveyor.yml
file from Symfony。
這裏是輸出:
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
構建掛在php composer.phar self-update -vvv
一步,你可以看到this build。
如何停止作曲者掛?
這很有趣,謝謝。你如何得到這個?它可以從AppVeyor的網站上獲得嗎? –
再次感謝,一旦我有這個錯誤信息,我已經能夠修復我的測試,現在[它工作](https://ci.appveyor.com/project/alexislefebvre/asynctweetsbundle/build/1.0.293)。所以我最初的問題不在於Composer,而是因爲我從來沒有見過的錯誤信息。你能解釋一下用戶如何獲取錯誤信息嗎? –
要製作截圖和任何其他動手調查,請使用[RDP建立工作人員](https://www.appveyor.com/docs/how-to/rdp-to-build-worker/) – ilyaf