forked from centreon/centreon-archived
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
61 lines (56 loc) · 2 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<project name="centreon-web" basedir="." default="main">
<property name="builddir" value="./build"/>
<target name="prepare">
<mkdir dir="${builddir}"/>
<mkdir dir="${builddir}/coverage"/>
</target>
<target name="unittest" depends="prepare">
<coverage-setup database="${builddir}/coverage.db">
<fileset dir="src">
<include name="**/*.php"/>
<exclude name="Centreon/Domain/Entity/*" />
<exclude name="CentreonRemote/Domain/Resources/*" />
<exclude name="**/Tests/*Test.php" />
<exclude name="**/Tests/**/*Test.php" />
</fileset>
</coverage-setup>
<phpunit bootstrap="tests/php/bootstrap.php" codecoverage="true">
<formatter type="plain" usefile="false"/>
<formatter type="xml" outfile="${builddir}/phpunit.xml"/>
<formatter type="clover" outfile="${builddir}/coverage-be.xml"/>
<batchtest>
<fileset dir="tests/php/">
<include name="**/**/**/*Test.php" />
</fileset>
<fileset dir="src">
<include name="**/*.php"/>
<include name="**/Tests/*Test.php" />
<include name="**/Tests/**/*Test.php" />
</fileset>
</batchtest>
</phpunit>
</target>
<target name="codestyle" depends="prepare">
<exec executable="./vendor/bin/phpcs" dir="./">
<arg value="--standard=ruleset.xml" />
<arg value="--report=checkstyle" />
<arg value="--report-file=${builddir}/checkstyle-be.xml" />
<arg value="./" />
</exec>
</target>
<target name="phpstan" depends="prepare">
<exec executable="./vendor/bin/phpstan" output="${builddir}/phpstan.xml">
<arg value="analyse" />
<arg value="-c" />
<arg value="phpstan.neon" />
<arg value="--level" />
<arg value="4" />
<arg value="--error-format" />
<arg value="absolute" />
<arg value="--no-interaction" />
<arg value="--no-progress" />
</exec>
</target>
<target name="main"></target>
</project>