-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
41 lines (34 loc) · 1.17 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<project name="abacaphiliac/compliments" default="develop" basedir=".">
<target name="develop">
<phingcall target="lint"/>
<phingcall target="tests"/>
</target>
<target name="lint">
<phingcall target="php-lint"/>
<phingcall target="phpcs"/>
</target>
<target name="php-lint">
<exec command="vendor/bin/parallel-lint src tests"
passthru="true"
output="/dev/stdout"
error="/dev/stdout"
checkreturn="true"/>
</target>
<target name="phpcs">
<exec command="vendor/bin/phpcs --standard=PSR2 --extensions=php --severity=1 --colors -p src/ tests/"
passthru="true"
output="/dev/stdout"
error="/dev/stdout"
checkreturn="true"/>
</target>
<target name="tests">
<phingcall target="unit-tests"/>
</target>
<target name="unit-tests">
<exec command="./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover"
passthru="true"
output="/dev/stdout"
error="/dev/stdout"
checkreturn="true"/>
</target>
</project>