-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
46 lines (44 loc) · 2.24 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
43
44
45
46
<?xml version="1.0"?>
<project name="Ecomail Flexibee client" basedir="." default="check">
<!-- ============================================ -->
<!-- Target: check -->
<!-- ============================================ -->
<target name="check" depends="lint, phpcs, phpstan, tests"/>
<!-- ============================================ -->
<!-- Target: fix -->
<!-- ============================================ -->
<target name="fix">
<exec command="composer normalize" passthru="true" checkreturn="true"/>
<phingcall target="phpcsfix"/>
</target>
<!-- ============================================ -->
<!-- Target: phpcsfix -->
<!-- ============================================ -->
<target name="phpcsfix">
<exec command="vendor/bin/phpcbf --standard=ruleset.xml --extensions=php --tab-width=4 -sp src tests" checkreturn="true" passthru="true"/>
</target>
<!-- ============================================ -->
<!-- Target: phpstan -->
<!-- ============================================ -->
<target name="phpstan">
<exec command="php -d memory_limit=8G vendor/bin/phpstan analyse src/ -c phpstan.neon --no-progress" passthru="true" checkreturn="true" level="error"/>
</target>
<!-- ============================================ -->
<!-- Target: lint -->
<!-- ============================================ -->
<target name="lint">
<exec command="vendor/bin/parallel-lint src tests --exclude vendor" passthru="true" checkreturn="true" level="error"/>
</target>
<!-- ============================================ -->
<!-- Target: phpcs -->
<!-- ============================================ -->
<target name="phpcs">
<exec command="php vendor/bin/phpcs --standard=ruleset.xml --extensions=php --encoding=utf-8 src tests" passthru="true" checkreturn="true"/>
</target>
<!-- ============================================ -->
<!-- Target: tests -->
<!-- ============================================ -->
<target name="tests">
<exec command="vendor/bin/paratest tests" passthru="true" checkreturn="true" level="error"/>
</target>
</project>