There is nothing super special about it.
We are using github web hooks to fire builds.
Pre-build steps setup the environment so we can guarantee unpolluted tests:
cat > app/Config/database.php <<'DATABASE_PHP'
<?php
class DATABASE_CONFIG {
var $test = array(
'datasource' => 'Database/Mysql',
'host' => 'localhost',
'database' => 'test_cakephp',
'login' => 'ci',
'password' => 'password',
'encoding' => 'utf8'
);
}
DATABASE_PHP
mysql -u user -ppassword -e 'DROP DATABASE IF EXISTS test_cakephp; CREATE
DATABASE test_cakephp';
rm -f app/tmp/testsc*; rm -rf app/tmp/tests/*;
The final build command is the test suite itself:
lib/Cake/Console/cake testsuite core AllTests --log-junit junit.xml
This you can modify to run any subset of tests, or whatever you like.
We're also using email notification and IRC notification to keep us informed as
the build status changes.
I hope thats helpful.
Cheers,
Graham Weldon
http://grahamweldon.com
e. [email protected]
p. (+61) 0407 017 293
Skype: grahamweldon
On Tuesday, 15 November 2011 at 10:50 AM, Thiago Belem wrote:
> I've seen the new CakePHP tests reports running in Jenkins
> (http://ci.cakephp.org/) and I want to know if there's any material about
> this setup and how I can configure to my projects.
>
> I found some guides about configuring Jenkins for PHP
> (https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+and+PHP) but I just
> wanted to check if there's something special/different for CakePHP.
>
> Thanks,
> --
> Thiago Belem
> Desenvolvedor
> Rio de Janeiro - RJ - Brasil
>
> +55 (21) 8865.9250
> thiagobelem.net (http://thiagobelem.net/)
> [email protected] (mailto:[email protected])
>
> Skype / gTalk » thiago.belem.web
> LinkedIn » br.linkedin.com/in/thiagobelem/pt
> (http://br.linkedin.com/in/thiagobelem/pt)
> Assando Sites, curso de CakePHP » assando-sites.com.br
> (http://assando-sites.com.br)
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected]
> (mailto:[email protected]) For more options, visit this
> group at http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php