-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphing.xml
executable file
·46 lines (41 loc) · 1.6 KB
/
phing.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
42
43
44
45
46
<project name="parsingphase/takeAticket" default="test-all" basedir=".">
<target name="test-mindeps" depends="phplint,phpcs"
description="Perform all tests that only require basic dependencies"/>
<target name="test-all" depends="phplint,phpcs,jstests,phpunit"
description="Perform all tests, including those which may require extra dependencies"/>
<target name="phplint"
description="Perform syntax check of sourcecode files"
>
<phplint
haltonfailure="true"
>
<fileset dir="${project.basedir}">
<include name="**/*.php"/>
<exclude name="vendor/"/>
</fileset>
</phplint>
</target>
<target name="phpcs"
description="Run PHP Codesniffer with PSR2 standard">
<exec executable="${project.basedir}/vendor/bin/phpcs" checkreturn="true" passthru="true">
<arg value="-n"/>
<!-- no warnings -->
<arg value="--standard=PSR2"/>
<arg value="${project.basedir}/src"/>
<!--<arg value="${basedir}/tests"/>-->
</exec>
</target>
<target name="phpunit"
description="Run PHPUnit tests">
<exec command="vendor/bin/phpunit --fail-on-warning" checkreturn="true" passthru="true" />
</target>
<target name="jstests"
description="Perform any tests specified by node package.json">
<!-- delegate to npm-->
<exec
command="npm test"
checkreturn="true"
logoutput="true"
/>
</target>
</project>