forked from joomla-extensions/patchtester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
31 lines (29 loc) · 1.22 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?xml version="1.0" encoding="UTF-8"?>
<project name="patchtester" default="build" basedir=".">
<!-- Run all tasks using build target -->
<target name="build" depends="phpcs" />
<!-- Check code style using Joomla Coding Standards -->
<target name="phpcs" description="Generate codestyle report using PHP_CodeSniffer">
<exec executable="phpcs">
<arg value="--report=checkstyle" />
<arg value="--extensions=php" />
<arg value="-p" />
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
<arg value="--standard=${basedir}/build/phpcs/Joomla" />
<arg value="--ignore=${basedir}/*tmpl/*" />
<arg path="${basedir}/administrator/components/com_patchtester" />
</exec>
</target>
<!-- Check code style on Travis-CI based on Joomla Platform -->
<target name="travis-phpcs" description="Generate codestyle report using PHP_CodeSniffer for output on Travis-CI">
<exec executable="phpcs">
<arg value="-p" />
<arg value="-w" />
<arg value="--extensions=php" />
<arg value="--report=full" />
<arg value="--standard=${basedir}/build/phpcs/Joomla" />
<arg value="--ignore=${basedir}/*tmpl/*" />
<arg path="${basedir}/administrator/components/com_patchtester" />
</exec>
</target>
</project>