{"id":109,"date":"2012-12-06T18:28:50","date_gmt":"2012-12-06T09:28:50","guid":{"rendered":"http:\/\/tech.eshima.info\/?p=109"},"modified":"2012-12-06T18:28:50","modified_gmt":"2012-12-06T09:28:50","slug":"cakephp%e3%81%ae%e3%82%b3%e3%83%bc%e3%83%87%e3%82%a3%e3%83%b3%e3%82%b0%e8%a6%8f%e7%b4%84%e3%83%81%e3%82%a7%e3%83%83%e3%82%af%e3%82%92%e8%87%aa%e5%8b%95%e3%81%a7%e8%a1%8c%e3%81%86%e3%81%9f%e3%82%81","status":"publish","type":"post","link":"https:\/\/tech.eshima.info\/?p=109","title":{"rendered":"CakePHP\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u30c1\u30a7\u30c3\u30af\u3092\u81ea\u52d5\u3067\u884c\u3046\u305f\u3081\u306bjenkins\u3092\u5c0e\u5165"},"content":{"rendered":"<p>Mac\u306b\u5c0e\u5165\u3002<\/p>\n<p>PHP\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308bPHP CodeSniffer\u3092\u5165\u308c\u308b<\/p>\n<pre lang=\"HTML\">\r\nsudo pear install PHP_CodeSniffer\r\n<\/pre>\n<p>\u5b9f\u884c\u306b\u5fc5\u8981\u306a\u30d1\u30b9\u304c\u901a\u3063\u3066\u306a\u304b\u3063\u305f\u306e\u3067php.ini\u306b\u8ffd\u52a0<br \/>\n\/opt\/local\/etc\/php5\/php.ini<\/p>\n<pre lang=\"HTML\">\r\ninclude_path = \".:\/\/opt\/local\/lib\/php\"\r\n<\/pre>\n<pre lang=\"HTML\">\r\nsudo \/opt\/local\/apache2\/bin\/apachectl restart\r\n<\/pre>\n<p>CakePHP\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre lang=\"HTML\">\r\nsudo pear channel-discover pear.cakephp.org\r\nsudo pear install cakephp\/CakePHP_CodeSniffer\r\n<\/pre>\n<p>\u3061\u3083\u3093\u3068\u5165\u3063\u305f\u304b\u30c1\u30a7\u30c3\u30af<\/p>\n<pre lang=\"HTML\">\r\nsudo phpcs -i\r\nThe installed coding standards are CakePHP, MySource, PEAR, PHPCS, PSR1, PSR2, Squiz and Zend\r\n<\/pre>\n<p>jenkins\u306fMac\u7528\u306e\u304c\u6e96\u5099\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<a href=\"http:\/\/jenkins-ci.org\/\" title=\"Welcome to Jenkins CI! | Jenkins CI\">Welcome to Jenkins CI! | Jenkins CI<\/a><\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306egit\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u63a5\u7d9a\u3059\u308b\u8a2d\u5b9a\u3092\u3057\u305f\u3093\u3060\u3051\u3069\u305d\u3053\u3067\u3064\u307e\u3065\u3044\u305f\u3002<br \/>\n\u9375\u3092jenkins\u7528\u306b\u8a2d\u7f6e\u3002\u30b5\u30fc\u30d0\u30fc\u5074\u3082\u5bfe\u5fdc\u3002<\/p>\n<pre lang=\"HTML\">\r\n\/Users\/Shared\/Jenkins\/.ssh\/id_rsa\r\n<\/pre>\n<p>\u30d3\u30eb\u30c9\u306e\u30c8\u30ea\u30ac\u306fgit\u306b\u3057\u3066\u3001<br \/>\n\u5909\u66f4\u304c\u3042\u3063\u305f\u3089\u4e0b\u8a18\u30b7\u30a7\u30eb\u3092\u5b9f\u884c\u3002<\/p>\n<pre lang=\"HTML\">\r\ncd ${WORKSPACE} && phpcs '--ignore=*\/Vendor\/*,*\/Plugin\/*,*\/cake.php' --report=checkstyle --report-checkstyle=${WORKSPACE}\/reports\/checkstyle.xml --standard=CakePHP --extensions=php,ctp .\/app || id\r\n<\/pre>\n<p>\u30ec\u30dd\u30fc\u30c8\u3092\u51fa\u529b\u3059\u308b\u90e8\u5206\u3082\u3064\u307e\u3065\u3044\u3066\u3001<br \/>\n\u30d5\u30a1\u30a4\u30eb\u3092\u51fa\u529b\u3067\u304d\u306a\u304b\u3063\u305f\u3002<br \/>\n\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u65b9\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u8a2d\u5b9a\u3057\u3066\u305f\u3093\u3060\u3051\u3069<br \/>\n\u51fa\u529b\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u304c\u6a19\u6e96\u3067\u306f\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u304c\u539f\u56e0\u3002<\/p>\n<pre lang=\"HTML\">\r\ncd \/opt\/local\/lib\/php\/PHP\/CodeSniffer\/\r\nsudo chmod 644 Reporting.php\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Mac\u306b\u5c0e\u5165\u3002 PHP\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u3092\u30c1\u30a7\u30c3\u30af [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-109","post","type-post","status-publish","format-standard","hentry","category-5"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=109"}],"version-history":[{"count":3,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions"}],"predecessor-version":[{"id":112,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/109\/revisions\/112"}],"wp:attachment":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}