-
Notifications
You must be signed in to change notification settings - Fork 6
/
phing.xml
44 lines (35 loc) · 1.63 KB
/
phing.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ai-typo3 extension" default="test">
<target name="test" description="Executes unit tests" depends="clean">
<echo msg="Executing unit tests" />
<exec command="${bindir}phpunit -d memory_limit=-1 --include-path ${coredir} --configuration=phpunit.xml"
dir="tests" checkreturn="true" logoutput="true" passthru="true" />
</target>
<target name="coverage" description="Generates code coverage report" depends="clean">
<echo msg="Generating code coverage report" />
<exec command="${bindir}phpunit -d memory_limit=-1 --include-path ${coredir} --configuration=phpunit-coverage.xml"
dir="tests" checkreturn="true" logoutput="true" passthru="true" />
</target>
<target name="check" description="Executes code sniffer">
<echo msg="Executing code sniffer" />
<exec command="${bindir}phpcs -n --standard=${codestddir}/Aimeos src/ tests/*/"
checkreturn="true" logoutput="true" passthru="true" />
</target>
<target name="clean" description="Cleans up temporary files">
<delete file="tests/coverage.xml" quiet="true" failonerror="false" />
<delete dir="tests/tmp" quiet="true" failonerror="false" />
<delete quiet="true" failonerror="false" >
<fileset dir="tests">
<include name="*.log" />
</fileset>
</delete>
</target>
<target name="i18n" description="Creates all translation files">
<echo msg="No translation files available" />
</target>
<target name="build" description="Creates all files to be generated" >
<echo msg="Nothing to build" />
</target>
<target name="all" depends="test,check" description="Builds all parts of the package">
</target>
</project>