-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.xml
27 lines (21 loc) · 839 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="MusicComposer" default="build">
<property name="binDir" value="${phing.dir}/vendor/bin"/>
<target name="lint">
<echo msg="Lint PHP source files"/>
<!-- exec used because PhpCodeSnifferTask doesn't expose desired functionality -->
<exec checkreturn="true" passthru="true"
command="'${binDir}/phpcs' --standard=PSR2 --exclude=PSR1.Files.SideEffects
--ignore=vendor **/*.php"/>
</target>
<target name="build" depends="lint">
<echo msg="No action required for build"/>
</target>
<target name="clean">
<echo msg="No action required for clean"/>
</target>
<target name="test" depends="build">
<echo msg="Execute unit tests"/>
<exec checkreturn="true" passthru="true" command="'${binDir}/phpunit' --coverage-clover=coverage.xml tests"/>
</target>
</project>