Created
July 24, 2012 06:20
-
-
Save papaben/3168354 to your computer and use it in GitHub Desktop.
Jenkins configuration for PHP quality metrics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='UTF-8'?> | |
<project> | |
<actions/> | |
<description>Run php quality metrics on the code base.
 | |

 | |
<div style="float: left">
 | |
<div style="
 | |
text-align: right;
 | |
margin-right: 3em;
 | |
font-size: 4em;
 | |
">
 | |
<a href="http://pdepend.org/documentation/handbook/reports/overview-pyramid.html">Legend</a>
 | |
</div>
 | |

 | |
<img src="http://$jenkinsHost/job/$projectName/ws/build/reports/jdepend-chart.svg"/>
 | |

 | |
<img src="http://$jenkinsHost/job/$projectName/ws/build/reports/overview-pyramid.svg" />
 | |

 | |
</div></description> | |
<keepDependencies>false</keepDependencies> | |
<properties/> | |
<scm class="hudson.scm.NullSCM"/> | |
<canRoam>true</canRoam> | |
<disabled>false</disabled> | |
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | |
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | |
<triggers class="vector"> | |
<hudson.triggers.TimerTrigger> | |
<spec># 4:20am every morning | |
20 4 * * *</spec> | |
</hudson.triggers.TimerTrigger> | |
</triggers> | |
<concurrentBuild>false</concurrentBuild> | |
<customWorkspace>$workspacePath</customWorkspace> | |
<builders> | |
<hudson.tasks.Shell> | |
<command>cd $WORKSPACE | |
./build/nightly-quality-metrics.sh </command> | |
</hudson.tasks.Shell> | |
</builders> | |
<publishers> | |
<hudson.plugins.pmd.PmdPublisher> | |
<healthy></healthy> | |
<unHealthy></unHealthy> | |
<thresholdLimit>low</thresholdLimit> | |
<pluginName>[PMD] </pluginName> | |
<defaultEncoding></defaultEncoding> | |
<canRunOnFailed>false</canRunOnFailed> | |
<useDeltaValues>false</useDeltaValues> | |
<thresholds> | |
<unstableTotalAll></unstableTotalAll> | |
<unstableTotalHigh></unstableTotalHigh> | |
<unstableTotalNormal></unstableTotalNormal> | |
<unstableTotalLow></unstableTotalLow> | |
<failedTotalAll></failedTotalAll> | |
<failedTotalHigh></failedTotalHigh> | |
<failedTotalNormal></failedTotalNormal> | |
<failedTotalLow></failedTotalLow> | |
</thresholds> | |
<shouldDetectModules>false</shouldDetectModules> | |
<dontComputeNew>true</dontComputeNew> | |
<pattern>build/reports/phpmd.xml</pattern> | |
</hudson.plugins.pmd.PmdPublisher> | |
<hudson.plugins.dry.DryPublisher> | |
<healthy></healthy> | |
<unHealthy></unHealthy> | |
<thresholdLimit>low</thresholdLimit> | |
<pluginName>[DRY] </pluginName> | |
<defaultEncoding></defaultEncoding> | |
<canRunOnFailed>false</canRunOnFailed> | |
<useDeltaValues>false</useDeltaValues> | |
<thresholds> | |
<unstableTotalAll></unstableTotalAll> | |
<unstableTotalHigh></unstableTotalHigh> | |
<unstableTotalNormal></unstableTotalNormal> | |
<unstableTotalLow></unstableTotalLow> | |
<failedTotalAll></failedTotalAll> | |
<failedTotalHigh></failedTotalHigh> | |
<failedTotalNormal></failedTotalNormal> | |
<failedTotalLow></failedTotalLow> | |
</thresholds> | |
<shouldDetectModules>false</shouldDetectModules> | |
<dontComputeNew>true</dontComputeNew> | |
<pattern>build/reports/phpcpd.xml</pattern> | |
<highThreshold>50</highThreshold> | |
<normalThreshold>25</normalThreshold> | |
</hudson.plugins.dry.DryPublisher> | |
<org.jenkinsci.plugins.cloverphp.CloverPublisher> | |
<publishHtmlReport>false</publishHtmlReport> | |
<xmlLocation>build/reports/coverage.xml</xmlLocation> | |
<disableArchiving>false</disableArchiving> | |
<healthyTarget> | |
<methodCoverage>70</methodCoverage> | |
<statementCoverage>80</statementCoverage> | |
</healthyTarget> | |
<unhealthyTarget/> | |
<failingTarget/> | |
</org.jenkinsci.plugins.cloverphp.CloverPublisher> | |
<hudson.tasks.junit.JUnitResultArchiver> | |
<testResults>build/reports/phpunit.xml</testResults> | |
<keepLongStdio>false</keepLongStdio> | |
<testDataPublishers/> | |
</hudson.tasks.junit.JUnitResultArchiver> | |
<hudson.plugins.jdepend.JDependRecorder> | |
<configuredJDependFile>build/reports/pdepend.xml</configuredJDependFile> | |
</hudson.plugins.jdepend.JDependRecorder> | |
</publishers> | |
<buildWrappers/> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<phpunit | |
colors="true" | |
verbose="true" | |
bootstrap="test/setup.php" | |
convertNoticesToExceptions="true" | |
convertWarningsToExceptions="true" | |
convertErrorsToExceptions="true" | |
> | |
<filter> | |
<blacklist> | |
<file>src/ProjectName/bootstrap.php</file> | |
<file>src/ProjectName/OutOfMyControl/ThirdParty/code.php</file> | |
<directory suffix=".php">vendor/</directory> | |
</blacklist> | |
</filter> | |
</phpunit> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist was posted for http://asheepapart.blogspot.com/2012/07/php-quality-metrics-with-jenkins.html