Commit 7ffc2e59 by Yuna Miyashita

Add build.xml

parent 93c0a5c0
<?xml version="1.0" encoding="utf-8" ?>
<project name= "BuildTest" basedir= "." default= "main">
<target name="main" depends= "phpcs,phpmd,phpcpd"></target>
<!-- phpcs -->
<target name="phpcs">
<exec executable= "phpcs" output= "phpcs.xml">
<arg line= "--report=checkstyle ./phpunit" />
</exec>
</target>
<!-- phpmd -->
<target name="phpmd">
<phpmd rulesets= "cleancode,codesize,controversial,design,naming,unusedcode">
<fileset dir= "/var/lib/jenkins/jobs/phpunit-test/workspace/phpunit/phpunit-selenium">
<include name= "**/*.php" />
</fileset>
<formatter type= "xml" outfile= "phpmd.xml" />
</phpmd>
</target>
<!-- phpcpd -->
<target name="phpcpd">
<phpcpd>
<fileset dir= "/var/lib/jenkins/jobs/phpunit-test/workspace/phpunit">
<include name= "**/*.php" />
</fileset>
<formatter type="pmd" outfile= "phpcpd.xml" />
</phpcpd>
</target>
<!-- phpunit -->
<!--<target name="phpunit">
<phpunit>
<formatter type="xml" outfile="phpunit.xml"/>
<batchtest>
<fileset dir=".">
<include name="test.php"/>
</fileset>
</batchtest>
</phpunit>
</target>-->
</project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment