I've found many good articles on setting up Jenkins for PHP projects. But couldn't get one which is targeted to Mac OSX. Here is the one, I followed to setup Jenkins for myself. I took following steps to setup one on Mac OS:
1- Installing php5 and pear using mac-ports: sudo port install php5 +pear
Enable libphp5.so module in apache configuration file: /etc/apache2/httpd.conf
2- Installing/configuring xdebug using macports:
command: sudo ports install php5-xdebug
Macports automatically put xdebug.so in /opt/local/lib/php/extensions/no-debug-non-zts-20090626
Copy xdebug config in /etc/php.ini
[xdebug]
zend_extension="/opt/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
Check debug installtion:
php -r 'var_dump(extension_loaded("xdebug"));'
3-Install ant using macports
sudo port install apache-ant
Macports installs ant in : /opt/local/bin/ant
4- Follow this tutorial for creating demo project and other steps:
http://edorian.posterous.com/setting-up-jenkins-for-php-projects
I had trouble in installing phpunit. I had to do install following packages as well in addition to the packages mentioned in above tutorial:
sudo pear install -f Net_URL2-0.3.1
sudo pear install HTTP_Request2-2.0.0RC1
and then
sudo pear install --alldeps phpunit/PHPUnit
5- Jenkins jobs folderis located at: /Users/Shared/Jenkins/Home/jobs/
6- Restart jenkins using : java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart
7- Reloading jenkins configuration: java -jar jenkins-cli.jar -s http://localhost:8080 reload-configuration
8- Checkout php-template job from this tutorial and reload configuration
9- You are Done !
10- Play around the Jenkins :-)
Subscribe to:
Posts (Atom)
Scheduling Repeating Local Notifications using Alarm Manager
Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .
-
Couple of days ago, I started using Google's code projects for Git as well. It required me to setup and use .netrc file. Here are steps...
-
Normal structure of build.gradle for an Android library looks like this: apply plugin : 'com.android.library' android { comp...
-
This is a 5 step process: Install hudson.war in your download directory : ~/Downloads Create a hudson directory in your home folder : mk...