-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
49 lines (42 loc) · 1.49 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8"?>
<project name="Routing" default="qatools">
<property name="library.dir" value="${project.basedir}/lib"/>
<property name="bin.dir" value="${project.basedir}/vendor/bin"/>
<property name="build.dir" value="${project.basedir}/build"/>
<target name="qatools">
<phingcall target="syntax"/>
<phingcall target="test"/>
<phingcall target="code-sniffer"/>
<phingcall target="mess-detector"/>
</target>
<target name="test">
<echo msg="Executing PHPUnit"/>
<exec executable="${bin.dir}/phpunit" passthru="true">
<arg value="-c"/>
<arg file="${project.basedir}/phpunit.xml"/>
</exec>
</target>
<target name="mess-detector">
<echo msg="Executing PHPMD"/>
<exec executable="${bin.dir}/phpmd" passthru="true">
<arg path="${library.dir}"/>
<arg value="text"/>
<arg value="codesize,controversial,design,unusedcode"/>
</exec>
</target>
<target name="code-sniffer">
<echo msg="Executing PHPCS"/>
<exec executable="${bin.dir}/phpcs" passthru="true">
<arg value="--standard=PSR2"/>
<arg path="${library.dir}"/>
</exec>
</target>
<target name="syntax">
<echo msg="Executing PHP Lint"/>
<phplint>
<fileset dir="${library.dir}">
<include name="**/*.php"/>
</fileset>
</phplint>
</target>
</project>