-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.xml
23 lines (20 loc) · 979 Bytes
/
.travis.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<project name="redSLIDER" default="travis" basedir=".">
<property name="basedir" value="." />
<target name="travis" description="Generate codestyle report using PHP_CodeSniffer for output on Travis-CI">
<property name="phpcs-ignore" value="${basedir}/.travis,{basedir}/media,${basedir}/redCORE,${basedir}/component/admin/views/*/tmpl/*,${basedir}/component/admin/layouts/*,${basedir}/component/admin/tables/*,${basedir}/plugins/redslider_sections/*/tmpl/*,${basedir}/modules/site/*/tmpl/*" />
<exec executable="phpcs" passthru="true">
<arg line="-p" />
<arg line="-w" />
<arg value="--report=full"/>
<arg value="--extensions=php"/>
<arg value="--standard=${basedir}/.travis/phpcs/Joomla/ruleset.xml"/>
<arg value="--ignore=${phpcs-ignore}"/>
<arg path="${basedir}"/>
</exec>
<exec executable="phpcpd" passthru="true">
<arg value="--progress"/>
<arg path="${basedir}"/>
</exec>
</target>
</project>