PhpUnderControl is a way to use CI under
Step 1: Enable EPEL repo and Remi repo
yum install wget
rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
enable remi repository editing file /etc/yum.repos.d/remi.repo
enabled=1
Step2: Install Java and other stuff
yum install unzip
yum install ant
yum install java-1.6.0-openjdk-devel
yum install php-phpunit-PHP-CodeCoverage.noarch
yum install phpdoc.noarch
yum install php-phpunit-phpcpd.noarch
yum install php-phpunit-phploc.noarch
yum install php-phpunit-PHPUnit.noarch
wget ftp://ftp.pbone.net/mirror/rpms.famillecollet.com/enterprise/5/remi/x86_64/php-pear-Console-CommandLine-1.1.3-3.el5.remi.noarch.rpm
rpm -i php-pear-Console-CommandLine-1.1.3-3.el5.remi.noarch.rpm
yum install php-phpunit-PHP-CodeBrowser
yum install php-phpmd-PHP-PMD.noarch
yum install php-ezc-Graph.noarch
yum install git
yum install subversion
Step3: Download CruiseControl
cd /opt
wget http://downloads.sourceforge.net/project/cruisecontrol/CruiseControl/2.8.4/cruisecontrol-bin-2.8.4.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fcruisecontrol%2Ffiles%2FCruiseControl%2F2.8.4%2F&ts=1314111366&use_mirror=heanet
unzip cruisecontrol-bin-2.8.4.zip
mv cruisecontrol-bin-2.8.4 cruisecontrol
rm cruisecontrol-bin-2.8.4.zip
cd cruisecontrol
step 4 fix problem with JAVA_HOME
open cruisecontrol.sh with your favorite editor (vim, emacs, nano, pico, gedit …) and set JAVA_HOME value, your file begin聽 must look like this:
<br />
<br />#!/usr/bin/env bash<br /><br />
JAVA_HOME="/usr/lib/jvm/java-1.6.0-openjdk"<br /><br />
#################################################<br /><br />
# CruiseControl, a Continuous Integration Toolkit<br /><br />
# Copyright (c) 2001, ThoughtWorks, Inc.<br /<br />
> # 200 E. Randolph, 25th Floor<br /><br />
# Chicago, IL 60601 USA<br /><br />
# All rights reserved.<br /><br />
step 5
open needed ports
step 6
Download PhpUnderControl
cd /opt
wget http://github.com/phpundercontrol/phpUnderControl/zipball/0.6.1beta1
mv 0.6.1beta1 0.6.1beta1.zip
unzip 0.6.1beta1.zip
mv phpundercontrol-phpUnderControl-04197bb/ phpundercontrol
step 7
Install PhpUnderControl over cruiseControl
cd phpundercontrol
cd bin
./phpuc.php install /opt/cruisecontrol/