Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jenkins configuration for PHP quality metrics
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description>Run php quality metrics on the code base.&#xd;
&#xd;
&lt;div style=&quot;float: left&quot;&gt;&#xd;
&lt;div style=&quot;&#xd;
text-align: right;&#xd;
margin-right: 3em;&#xd;
font-size: 4em;&#xd;
&quot;&gt;&#xd;
&lt;a href=&quot;http://pdepend.org/documentation/handbook/reports/overview-pyramid.html&quot;&gt;Legend&lt;/a&gt;&#xd;
&lt;/div&gt;&#xd;
&#xd;
&lt;img src=&quot;http://$jenkinsHost/job/$projectName/ws/build/reports/jdepend-chart.svg&quot;/&gt;&#xd;
&#xd;
&lt;img src=&quot;http://$jenkinsHost/job/$projectName/ws/build/reports/overview-pyramid.svg&quot; /&gt;&#xd;
&#xd;
&lt;/div&gt;</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>
<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>
@papaben

This comment has been minimized.

Copy link
Owner Author

papaben commented Jul 24, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment