-
Notifications
You must be signed in to change notification settings - Fork 44
/
build.xml
42 lines (36 loc) · 1.31 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
42
<project name="Scientist" default="test">
<!-- Execute code style check. -->
<target name="phpcs">
<echo>Running PHP PSR-2 code style checks.</echo>
<exec executable="vendor/bin/phpcs" passthru="true" checkreturn="true">
<arg value="--colors" />
<arg value="--standard=PSR2" />
<arg value="src" />
</exec>
</target>
<!-- Execute code style fix -->
<target name="phpcbf">
<echo>Running PHP PSR-2 code style fixes.</echo>
<exec executable="vendor/bin/phpcbf" passthru="true">
<arg value="--colors" />
<arg value="--standard=PSR2" />
<arg value="src" />
</exec>
</target>
<!-- Execute PHP linting. -->
<target name="phplint">
<echo>Running PHP parallel linter.</echo>
<exec executable="vendor/bin/parallel-lint" passthru="true" checkreturn="true">
<arg value="src" />
</exec>
</target>
<!-- Execute PHPUnit tests. -->
<target name="phpunit">
<echo>Running PHP Unit tests.</echo>
<exec executable="vendor/bin/phpunit" passthru="true" checkreturn="true">
<arg value="--color" />
</exec>
</target>
<!-- Execute test suite. -->
<target name="test" depends="phpcs, phplint, phpunit" />
</project>