-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
35 lines (27 loc) · 1.07 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
<?xml version="1.0"?>
<project name="PayU" default="test-all">
<target name="cs-fix">
<exec command="./bin/php-cs-fixer fix src/"/>
</target>
<target name="test-all" depends="phpspec,unit-tests,hhvm-unit-tests,phpmd"/>
<target name="unit-tests">
<exec command="./bin/codecept run unit" checkreturn="true" passthru="true"/>
</target>
<target name="hhvm-unit-tests">
<exec command="hhvm bin/codecept run unit" checkreturn="true" passthru="true" />
</target>
<target name="phpspec">
<exec command="./bin/phpspec run" checkreturn="true" passthru="true"/>
</target>
<target name="coverage">
<exec command="./bin/codecept run unit -c codeception.yml --coverage --coverage-html --coverage-xml"
checkreturn="false"
passthru="false" />
</target>
<target name="phpmd">
<exec
command="./bin/phpmd src/ text cleancode,codesize,controversial,design,unusedcode --exclude tests"
checkreturn="true"
passthru="true" />
</target>
</project>