PHP BLT #4 http://phpblt.connpass.com/event/27655/
Transcript Î ÍÍ·ßÍͨÍÍÍÎÍÍ·ÖàµÏÏ©Ê PHPฤ Yuta Adachi à£Ý¾à¦ºÕ° Òà¡ à¼à¬ (@UAdachi) ! à¥à¨É¿à±¡à Ýদßࢢ Íà¢à£É¿ChatWork ΠϯÏϥνÊÏ ! ڵຯÍÎÍÍ±É¿Ï ÏΠϯۦà²àªÜɺScalaɺÏÏε (΢ÎϯÏÏ§Ï Ï¯Öà µà®¤) ! IUUQT���DJSDMFDJ�DPN Íà¶¼à¥»Í â¢ ÖàµÏÏ©ÊÎà ·à°¦Ô½Í Í¯ÍÍ໨త ⢠ÖàµØÚ¥ ⢠ίÏÏ¡ÏÎÊγϣϯ ⢠CI ⢠ÏÏϩΠ໨త ! ⢠ÖàµÍ·ß´à¬Ô½ ⢠ΦÏϨÊγϣϯÏεͷ༧๷ ⢠ÏϩμΫÏͷ඼à£Þ²à§ + ÕࢹԽ ÖàµØÚ¥ ͲÍÎͬͯßà®Í ͯÎÍ¢ÍÊ â¢ Vagrantͬͯà¢Í¬Í¯ÎÍ¢ÍÊ ÏϯÏÏϯε ⢠ÖàµØڥͩͬͯß৽ÍÎà¬ÍΠ⢠ßà®à¤à¥±à¥»Îà¡ÎÍ·àม " εΫϦÊϯγϣοÏʹ໼ҹॻÍͯɺàªà»à¸Îà°´Íͯ⦠ʮԶͷØڥʯ໰à ྫ. AÊ®à²ÍͶÊʯ BʮԶͷØڥͩͱà²Í
ä»äºã§CakePHP 1.3ã®ã¦ããããã¹ããæ¸ãã¾ããã Jenkinsã§èªåå®è¡ãããã®ããåã«ãã£ãã¨ãããç°¡åã«ã§ããã®ã§ æé ããç´¹ä»ãã¾ãã (è·å ´ã¯Linuxã§ãç´¹ä»ããã®ã¯Mac OS Xã§ã®æé ãªã®ã§ããã¤ãéãç¹ãããã¾ãã) ç°å¢ ä»åã¯æ¬¡ã®ç°å¢ã«èªåãã¹ãç°å¢ãä½ã£ã¦ã¿ã¾ããã Mac OS Xã«ã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ããããCent OSã«ã¤ã³ã¹ãã¼ã«ããã¨ãã§ããJenkinsã®ã¤ã³ã¹ãã¼ã«ã¨ãã¹ãå®è¡ã³ãã³ã以å¤ã¯ã»ã¨ãã©è¨å®æ¹æ³ã«ãããã¯ããã¾ããã ãªããCakePHPã®ç°å¢ã¯ãã§ã«æ§ç¯æ¸ã¿ã§Subversionã§ãã¼ã¸ã§ã³ç®¡çãã¦ãããã¨ã¨ãã¾ãã Mac OS X 10.7(Lion) PHP ã Apacheã¯Homebrewã§ç¨æãã¾ãã(PHP ã¯5.3.10ãã¤ã³ã¹ãã¼ã«ããã¦ãã¾ã) CakePHP 1.xç³»ã®ãã¹ãçµæãJenkinsã«åãè¾¼
Jenkinsã§Java/PHP/Ruby/JavaScriptããã¸ã§ã¯ãããã«ããJavaã¯çç¥ãã¦ã¾ããRead less
Editor's Notes\n\n\n\nこのLTは ネットでつながる。エンターテイメントでつながる。株式会社&am
5åã§åºæ¥ãjenkinså°å ¥ã§ãããPHPã®ããã¸ã§ã¯ããåããã²ãããã¯ã¾ãã¾ãã Template for Jenkins Jobs for PHP Projectsãåèã«ãã¤ã¤è¶³ãã¦ããªãæ å ±ãããã®ã§è£å®ãã¾ã PHPã®ãã¼ã¸ã§ã³ PHP.5.2.x以ä¸ãæ±ããããã®ã§PHP5.3.xãå ¥ãã¡ããã»ãã楽ã§ãï¼ãã¹ãç°å¢ãæ¬çªç°å¢ã¨ãã¼ã¸ã§ã³ãéã£ã¦ããã®ãã¨ããåé¡ã¯ãã¦ããï¼ PHP5.3ã®ã¤ã³ã¹ãã¼ã«æ¹æ³âéçºç°å¢ãæ§ç¯ããæç¨ã®ã¡ã¢ Apacheã»PHPã»MySQL | ã®ã¶ãã å¿ è¦ãªpearã¢ã¸ã¥ã¼ã«ã®ã¤ã³ã¹ãã¼ã« ~~~ pear channel-discover pear.pdepend.org pear channel-discover pear.phpmd.org pear channel-discover pear.phpunit.de pear chan
HudsonãããHudsonãJenkinsã«ååå¤ãã£ãã¿ãããªã®ã§ã¾ãå¾ã§ä¹ãæããããã©ãã ææã½ãããã¦ã¹ã«ããé ãã¾ã mavenããªãã£ãé ãé å¼µã£ã¦antãé§ä½¿ãã¦JUnitã¨JCoverageããã¤ãªã¼ãã«ãã§åãã¦è¨æ¸¬ãã¦ã¨ã©ã¼ããã£ããã¿ããªã«ã¡ã¼ã«ãé£ã¶ã£ã¦ãããããç°å¢ãèªåã§ãä½ã£ãã使ã£ã¦ããã®ã«ãä»ã®ä¼ç¤¾ã§å ¨ç¶ãããããã¨ããã¦ããªãã®ãå«ã§å«ã§ã ããããPHPç¨ã®Antã§ããã¨ããã®Phingãããããã¤ãªã¼ãã«ãããã£ã¦ãããHudsonãããããããã¯ã¨æã£ã¦1æ¥é å¼µã£ã¦ã¿ããOSã¯CentOS5.5ã 1.CentOS5.5ã«PHP5.3ãå ¥ãã CentOS 5ç³»ã§PHP5.3ç³»ãMySQL5.1ç³»ã使ãããå ´å - RX-7ä¹ãã®é©å½ãªæ¥ã ãã¡ãã®ãµã¤ããåèã«ã--enablerepo=remi㧠php php-devel php-pec
ãã®è¨äºã¯CakePHP1.2ç³»ã¾ãã1.3ç³»ã対象ã¨ãã¦ãããCakePHP2.0ç³»ã§ã¯å¥ã®ã¢ããã¼ãã«ãªãã¾ãã ä¸æè°ãªãã¨ã«CakePHPã¢ããªã®éçºã§Hudson使ã£ã¦ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ãã¦ããäºä¾ãã»ã¨ãã©è¦ããã¨ããªããã ãã©ãå人çã«ã¯PHPã¢ããªã ã£ã¦å ¨é¨Hudsonã§CIãã¹ãã¨æã£ã¦ããã®ã§ãã£ã¦ã¿ãã (ã¡ãªã¿ã«æè¿ã¾ã§phpUnderControlã§CIãã¦ãã) æ¦ç¥ CakePHPã¢ããªã§CIãããã¨ãã¦åé¡ã«ãªãã®ã¯ã CakePHPã§ã®ãã¹ãã©ã¤ãã©ãªãSimpleTestã§ããJUnitäºæã®ãã¹ãçµæãåºåã§ããªãã㨠ããã«SimpleTestã§ã¯ä¸å¿XMLã§ã®çµæåºåãã§ããã®ã«ãCakePHPã®reporterã«cake_xml_reporterã¨ããç¡ãã¦ãhtmlåºåãããã¹ãåºåããã§ããªã ã¨ããï¼ç¹ã«ããã®ã§ããã®ï¼ç¹ãã¯ãªã¢ãã
Hudsonçã使ã£ãç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ã§ã¯ããã¹ãã®èªåå®è¡ã®ä»ã«ããããã¥ã¡ã³ãã®èªåä½æãã³ã¼ãã£ã³ã°è¦ç´ã®èªåãã§ãã¯ãéè¤ã³ã¼ãã®ãã§ãã¯(DRYååã®ãã§ãã¯)çãè¡ããã¨ãã§ããããå®è¡ããã¹ãã§ããã ä»åã¯ãPHPï¼Hudsonã®ç°å¢ã§ã³ã¼ãã®éè¤ãç¶ç¶çã«ãã§ãã¯ã§ããããã«ãã¦ã¿ãã phpcpdPHPã§ã³ã¼ãã®éè¤ãæ¤æ»ããã«ã¯ãphpcpdã¨ãããã¼ã«ã使ãã®ãå®çªã§ããã phpcpdã¯pearã³ãã³ãã§ã¤ã³ã¹ãã¼ã«å¯è½ã ã ãªããphpcpdãå©ç¨ããããã«ã¯ãpearã1.9.1以ä¸ã§ããå¿ è¦ãããã ã¤ã³ã¹ãã¼ã«æé pear upgrade pear pear channel-discover pear.phpunit.de pear channel-discover components.ez.no pear install phpunit/ph
1. LLè¨èªã§ãHudsonã使ã ã! 2010/02/25 ç 究éçºé¨ ä½ã æ¨å¥ä¸ Copyright 2010 KLab Inc. All rights reserved. 1 3. èªå·±ç´¹ä» ⢠åå â ä½ã æ¨å¥ä¸ â¢ æ²¿é© â ï½2009å¹´8æ ⢠ããã¸ã§ã¯ãããã¸ã¡ã³ãé¨ã«å¨ç± ⢠èªç¤¾åãæºå¸¯ãµã¤ãéçºãã¬ã¼ã ã¯ã¼ã¯ä½æ(Java) ⢠Hudsonãã³ãã³ã使ã â 2009å¹´9æï½ â¢ ããã¸ã¡ã³ãããã¢ãã¥ããã好ãã§ç¾é¨ç½²ã¸ ⢠LLè¨èªã«ãCIã®å¿ è¦æ§ãæãã¤ã¤ä»ã¸è³ã ⢠æè¡ â 大æã¯C,C++ â ä»ã¯Javaãªäººã§ãã â PythonãRubyãHaskellãScalaãããã£ã Copyright 2010 KLab Inc. All rights reserved. 3
Hudsonã使ãå§ããã¨ãããããã¤ãPHPã®éçºã§ã使ããããªãã¨ãæãã¤ã¤ãPhing Pluginãã³ããããã¦ãã£ã¨å¿ãã¦ãã¾ããã PHPã®è©¦é¨ç°å¢ã¯Javaã®å½±é¿ãåãã¦ããªãè¯ããªã£ã¦ãã¦ãã¾ããAntã«å¯¾å¿ããPhingãJunitã«å¯¾å¿ããPHPUnitãCheckStyleã«å¯¾å¿ããPHP_CodeSnifferãªã©ãããã¾ãã ä»æ¥ã¯ãæå§ãã«Phingã¨PHPUnitã§åä½è©¦é¨ã®èªååããã£ã¦ã¿ããã¨æãã¾ãã Phingã®æºå Phingã®ã¤ã³ã¹ãã¼ã« Phingãã¤ã³ã¹ãã¼ã«ãããåèã«ãã¦ã¤ã³ã¹ãã¼ã«ãã¾ããHudsonãå®è¡ããã¦ã¼ã¶ã¼ã§åããã¨ã確èªãã¦ããã¾ãã Phingãã©ã°ã¤ã³ã®ã¤ã³ã¹ãã¼ã« [Hudsonã®ç®¡ç] - [ãã©ã°ã¤ã³ã®ç®¡ç] - [å©ç¨å¯è½]ã®ä¸è¦§è¡¨ç¤ºãã"Phing Plugin"ããã§ãã¯ãã¦ãã¤ã³ã¹ãã¼ã«ãåèµ·åãã¾ãã ã½
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}