-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
44 lines (39 loc) · 1.52 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="hofff/contao-tawk-to" default="build">
<!-- import the main build system -->
<import file="vendor/phpcq/phpcq/phpcq.main.xml" />
<import file="vendor/phpcq/phpcq/tasks/macrodefs.xml" />
<target name="phpstan">
<exec dir="${basedir}" executable="${phpcq.php-cli.bin}" failonerror="true" taskname="phpstan">
<arg value="vendor/bin/phpstan"/>
<arg line="analyse -l max -c phpstan.neon --no-progress ./src"/>
</exec>
</target>
<target name="-detect-composer-require-checker" unless="composer-require-checker.task.bin">
<find-file-in-path
name="composer-require-checker"
property="composer-require-checker.task.bin"
/>
</target>
<target name="composer-require-checker" depends="-detect-composer-require-checker">
<exec dir="${basedir}" executable="${composer-require-checker.task.bin}" failonerror="true" taskname="composer-require-checker">
<arg line="check composer.json --config-file .composer-require-checker.json"/>
</exec>
</target>
<target
name="analyze"
depends="
phploc,
pdepend,
phpmd,
phpcs,
phpstan,
phpcpd,
phpunit,
phpspec,
composer-require-checker,
branch-alias-validation,
travis-configuration-check"
description="Do static analysis of the code"
/>
</project>