-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathphing.xml
48 lines (39 loc) · 1.78 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
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<project name="ai-client-jsonapi" default="all">
<target name="test" description="Executes unit tests" depends="clean">
<echo msg="Executing unit tests" />
<exec executable="${bindir}phpunit" dir="tests" checkreturn="true" logoutput="true" passthru="true">
<arg line="-d memory_limit=-1 --include-path ${coredir} --configuration=phpunit.xml" />
</exec>
</target>
<target name="coverage" description="Generates code coverage report" depends="clean">
<echo msg="Generating code coverage report" />
<exec executable="${bindir}phpunit" dir="tests" checkreturn="true" logoutput="true" passthru="true">
<arg line="-d memory_limit=-1 --include-path ${coredir} --configuration=phpunit-coverage.xml" />
</exec>
</target>
<target name="check" description="Executes code sniffer">
<echo msg="Executing code sniffer" />
<exec executable="${bindir}phpcs" checkreturn="true" logoutput="true" passthru="true">
<arg line="-n --standard=${codestddir}/Aimeos src tests/*/" />
</exec>
</target>
<target name="clean" description="Cleans up temporary files">
<delete file="tests/confdoc.ser" quiet="true" failonerror="false" />
<delete file="tests/coverage.xml" quiet="true" failonerror="false" />
<delete file="tests/coveralls.json" quiet="true" failonerror="false" />
<delete quiet="true" failonerror="false" >
<fileset dir="tests">
<include name="*.log" />
</fileset>
</delete>
</target>
<target name="i18n" description="Creates translation message files">
<echo msg="Nothing to do" />
</target>
<target name="build" description="Builds package for deployment">
<echo msg="Nothing to do" />
</target>
<target name="all" depends="coverage,check,i18n,build" description="Builds all parts of the package">
</target>
</project>