メンチカツには醤油でしょ!!

ITエンジニア徒然 (AWS/Java/JavaScript/Google Spreadsheets/Jenkins/Mac/外部コミュニティ・勉強会レポ)

Jenkins導入後に各環境設定切り替えを実施した時のメモ

Jenkinsの導入が無事に終わると、今度は環境間差異の切り替えをしたくなる。

 

phingというJavaで言うantのようなものを使ってbuild.xmlを処理します。

(何て発音するのこれ?ふぃんぐ?)

そして、phingを入れるにはpearというyumとかhomebrewのようなものでインストールする必要があるそう。

 

XAMPP使ってるので、C:\xampp\php にパスが通ってなかった。

そんなの関係ねぇ~とはいかないのでパスを通してpear

C:\xampp\php>pear channel-discover pear.phing.info

Channel "pear.phing.info" is already initialized

pear.phing.infoは更新チャンネルに入ってましたねー。

C:\xampp\php>pear install phing/phing

WARNING: channel "pear.phing.info" has updated its protocols, use "pear channel-

update pear.phing.info" to update

Unknown remote channel: pear.phpunit.de

Unknown remote channel: pear.phpunit.de

WARNING: "pear/PEAR_PackageFileManager" is deprecated in favor of "pear/PEAR_Pac

kageFileManager2"

Unknown remote channel: pear.pdepend.org

Unknown remote channel: pear.phpmd.org

Unknown remote channel: pear.phpunit.de

Unknown remote channel: pear.phpunit.de

Unknown remote channel: pear.phpdoc.org

Did not download optional dependencies: phing/phingdocs, pear/VersionControl_SVN

, pear/VersionControl_Git, channel://pear.phpunit.de/PHPUnit, channel://pear.php

unit.de/PHP_CodeCoverage, pecl/Xdebug, pear/PEAR_PackageFileManager, pear/Servic

es_Amazon_S3, channel://pear.pdepend.org/PHP_Depend, channel://pear.phpmd.org/PH

P_PMD, channel://pear.phpunit.de/phpcpd, channel://pear.phpunit.de/phploc, chann

el://pear.phpdoc.org/phpDocumentor, pear/PHP_CodeSniffer, pear/Net_Growl, use --

alldeps to download automatically

phing/phing can optionally use package "phing/phingdocs" (version >= 2.6.1)

phing/phing can optionally use package "pear/VersionControl_SVN" (version >= 0.4

.0)

phing/phing can optionally use package "pear/VersionControl_Git" (version >= 0.4

.3)

phing/phing can optionally use package "channel://pear.phpunit.de/PHPUnit" (vers

ion >= 3.6.0)

phing/phing can optionally use package "channel://pear.phpunit.de/PHP_CodeCovera

ge" (version >= 1.1.0)

phing/phing can optionally use package "pecl/Xdebug" (version >= 2.0.5)

phing/phing can optionally use package "pear/PEAR_PackageFileManager" (version >

= 1.5.2)

phing/phing can optionally use package "pear/Services_Amazon_S3" (version >= 0.3

.1)

phing/phing can optionally use package "channel://pear.pdepend.org/PHP_Depend" (

version >= 0.10.0)

phing/phing can optionally use package "channel://pear.phpmd.org/PHP_PMD" (versi

on >= 1.1.0)

phing/phing can optionally use package "channel://pear.phpunit.de/phpcpd" (versi

on >= 1.3.3)

phing/phing can optionally use package "channel://pear.phpunit.de/phploc" (versi

on >= 1.6.4)

phing/phing can optionally use package "channel://pear.phpdoc.org/phpDocumentor"

 (version >= 2.0.0b7)

phing/phing can optionally use package "pear/PHP_CodeSniffer" (version >= 1.3.0)

 

phing/phing can optionally use package "pear/Net_Growl" (version >= 2.6.0)

downloading phing-2.6.1.tgz ...

Starting to download phing-2.6.1.tgz (481,484 bytes)

.........................done: 481,484 bytes

ERROR: failed to mkdir C:\php\pear\data\phing\etc

 

 なんか色々だめみたいなので、また試行錯誤が始まりそう・・

 

と思ったけど、 > phingでBuildfile: build.xml does not exists! と言われたので

インストールはできてる感じ。動けばいいやってことで次。

 

【WIP】