forked from aimeos/aimeos-base
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
34 lines (27 loc) · 1.37 KB
/
build.xml
File metadata and controls
34 lines (27 loc) · 1.37 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Aimeos Base" default="all">
<property name="bindir" value="${project.basedir}/vendor/bin/" override="false" />
<target name="test" description="Executes unit tests">
<echo msg="Executing unit tests" />
<exec command="${bindir}phpunit --configuration=phpunit.xml --display-deprecations"
dir="tests" checkreturn="true" logoutput="true" passthru="true" />
</target>
<target name="coverage" description="Generates code coverage report">
<echo msg="Generating code coverage report" />
<delete file="tests/coverage.xml" quiet="true" failonerror="false" />
<exec command="${bindir}phpunit --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=.phpcs/ 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 file="tests/confdoc.ser" quiet="true" failonerror="false" />
<delete dir="tmp" quiet="true" failonerror="false" />
</target>
<target name="all" depends="coverage,check" description="Builds all parts of the package">
</target>
</project>