-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml.dist
29 lines (22 loc) · 1.08 KB
/
build.xml.dist
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="traveler" basedir="." default="qa">
<target name="qa" depends="syntax-check, test, coding-conventions"></target>
<target name="syntax-check">
<echo message="Validate syntax" />
<exec command="find src bootstrap -name '*.php' -print0 | xargs -0 -n1 php -l -d display_errors=on" passthru="true" />
</target>
<target name="test" depends="build">
<echo message="Integration tests" />
<exec command="vendor/bin/phpunit --testsuite integration" passthru="true" />
<echo message="Unit tests with coverage" />
<exec command="vendor/bin/phpunit --coverage-text --testsuite unit" passthru="true" />
</target>
<target name="build">
<echo message="Install/update dependencies" />
<exec command="composer update" passthru="true" />
</target>
<target name="coding-conventions">
<echo message="Check coding conventions fulfilment: PSR2 and other (see phpcs.xml.dist)" />
<exec command="vendor/bin/phpcs" passthru="true" />
</target>
</project>