An Oracle blog about NetBeans for PHP

Continuous Integration support

Hi all, today we would like to show you another great feature we have prepared for NetBeans 7.2. It is Continuous Integration support for PHP projects.

Everyone who has plenty of tests for his/her PHP projects and needs to be sure that all the tests pass all the time, NetBeans 7.2 will try to help as much as possible. What exactly needs to be done?

NetBeans uses Template for Jenkins Jobs for PHP Projects
(created by Sebastian Bergmann, the author of PHPUnit - thanks for it,
Sebastian!) so please ensure that all the necessary plugins and tools
are installed both on your server as well as on your local computer -
detailed instactions can be found on the project website.

If you are done, register your Hudson or Jenkins instance in the NetBeans:

Registering CI server

Now, verify that everything is configured properly (in Tools > Options > PHP > Hudson):

IDE Options for Hudson PHP

Now it is time to create a new build job for your project (the project must be versioned) right from your NetBeans:

Create build job for PHP project (I)

You can specify areas you are interested in:

Create build job for PHP project (II)

If everything goes well, the job is created on your CI server so you can run it:

Run CI job for PHP project

After the job finishes, NetBeans will show you the status of the job (success in our case). Also, you can easily open the job web page in your browser:

Open job web page in browser

The job web page can look similarly to this one:

Job web page

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans BugZilla (component connecteddeveloper, subcomponent Hudson).

Join the discussion

Comments ( 10 )
  • Daniel Gafitescu Wednesday, February 8, 2012

    Maybe you can add support for Phing as well !

    That would be great

  • Tomas Mysik Wednesday, February 8, 2012

    @Daniel Gafitescu: Currently, no such plans, sorry. Feel free to submit an enhancement to our BugZilla [1] (against php/Code), ideally with scenarios that could be supported.


    [1] http://netbeans.org/community/issues.html

  • guest Wednesday, February 8, 2012

    OT question...

    Just yesterday I tried NetBeans on Linux (Ubuntu with XFCE). After a long time triyng to make GTK look and feel nicer (I do not like Metal very much), I noticed that with both OpenJDK and Sun JDK 6, editor font is rendered very very ugly (too thin, not much readable). I tried all possible anti-aliasing Java command-line options (off, on, gasp, lcd, rgb order), but with poor results.

    Screenshots on this site shows a better looking. Can I ask you what OS / system configuration / JDK / Java options / font family are you using?

    In other Java applications (as Eclipse, just to say) editor font is clear, bolder, better anti-aliased and very legible.

    That's really a pity. NetBeans for me is the best for PHP developing because all of its simple but rich and numerous features (Smarty support, better support for newer PHP features, Zen Coding, simple and plain Git support, etc)... But font readability is a key feature for source code editors!

  • metaxy Wednesday, February 8, 2012

    Is it possible to sort items from list with code completition in order of frequency of use? Like in Visual Studio etc. Rspecially in CSS3 where the most frequent are width, line-height etc. but currently they are on the top.

  • Tomas Mysik Thursday, February 9, 2012

    @guest: Please, submit a bug with all the possible information.


  • Tomas Mysik Thursday, February 9, 2012

    @metaxy: Please, submit an enhancement with all the possible information.


  • guest Thursday, February 9, 2012

    It's not a bug. I know the font rendering depends on the fact that Eclipse uses a different graphic toolkit for its GUI (SWT I think, while NetBeans uses AWT or something). At least cab be a bug to report to developers of OpenJDK or Sun JDK for Linux.

    What I was asking is simply to tell me the configuration and editor font used for screenshots, cause they look a bit better than mine.

  • Tomas Mysik Thursday, February 9, 2012

    @guest: No special configuration (no special options, default fonts [Monospaced 13]). That's why I was talking about a bug (your words "editor font is rendered very very ugly (too thin, not much readable)" are definitely not OK).

  • Dirk Friday, March 9, 2012

    hi guys... as daniel has mentioned in his first comment: support for phing would be great. if there are no such plans so far, maybe you can drop me an email if there is support somewhere in the future ;) thx and keep up the good work!

  • Jeff Rubinoff Wednesday, April 4, 2012


    As Tomas wrote in his reply to Daniel, please file an enhancement request. And if you know a lot of NB users who would like phing support, get them to log in and vote for the enhancement!

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.