-
Notifications
You must be signed in to change notification settings - Fork 1
/
phing.xml
47 lines (37 loc) · 1.68 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="ai-admin-graphql 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 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="i18n-update" description="Updates 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" description="Builds all parts of the package">
</target>
</project>