Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 1.59 KB

README.md

File metadata and controls

44 lines (31 loc) · 1.59 KB

Laravel Jenkins CI Boilerplate

A Jenkins continuous integration boilerplate project set up for use with Laravel conventions.

This boilerplate project is based on the Jenkins Jobs for PHP Project. To set up your CI server, follow the instructions via http://jenkins-php.org/installation.html.

This boilerplate provides a fully working build.xml file, with build scripts in the build directory.

Everything needed to automate the running of unit tests, code coverage, crap analysis, documentation generation, style checking is including in the build configuration.

Required Jenkins Plugins

You need to install the following plugins for Jenkins:

  • Checkstyle (for processing PHP_CodeSniffer logfiles in Checkstyle format)
  • Clover PHP (for processing PHPUnit's Clover XML logfile)
  • Crap4J (for processing PHPUnit's Crap4J XML logfile)
  • DRY (for processing phpcpd logfiles in PMD-CPD format)
  • HTML Publisher (for publishing documentation generated by phpDox, for instance)
  • JDepend (for processing PHP_Depend logfiles in JDepend format)
  • Plot (for processing phploc CSV output)
  • PMD (for processing PHPMD logfiles in PMD format)
  • Violations (for processing various logfiles)
  • Warnings (for processing PHP compiler warnings in the console log)
  • xUnit (for processing PHPUnit's JUnit XML logfile)

You can install these plugins via the Jenkins Plugin administration system.

Required PHP Tools

The following PHP tools are required:

  • PHPUnit
  • PHP_CodeSniffer
  • PHPLOC
  • PHP_Depend
  • PHPMD
  • PHPCPD
  • phpDox

Full instructions on how to set these tools up are available via the Jenkins-PHP project website.