forked from eMAGTechLabs/annotation-cache-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
45 lines (43 loc) · 1.66 KB
/
build.xml
File metadata and controls
45 lines (43 loc) · 1.66 KB
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
<?xml version="1.0" encoding="utf-8"?>
<project name="eMAG CachingBundle" basedir="." default="reports">
<fileset dir="src" id="relevant-tests">
<include name="**/*Test.php"/>
</fileset>
<fileset dir="src/" id="our-files">
<include name="**/*.php"/>
<exclude name="**/*Test.php" />
<exclude name="**/DependencyInjection/**/**.php" />
<exclude name="**/DependencyInjection/**.php" />
</fileset>
<target name="prepare">
<mkdir dir="reports" />
</target>
<target name="reports" depends="phpmd, phpcs, cpd">
</target>
<target name="phpmd" depends="prepare">
<phpmd rulesets="phpmd.xml">
<fileset refid="our-files" />
<formatter outfile="reports/phpmd.xml" type="xml" />
<formatter outfile="reports/phpmd.html" type="html" />
</phpmd>
</target>
<target name="phpcs" depends="prepare">
<phpcodesniffer allowedFileExtensions="*.php" standard="phpcs.xml">
<fileset refid="our-files" />
<formatter type="checkstyle" outfile="reports/codesniffer.xml" />
</phpcodesniffer>
</target>
<target name="cpd" depends="prepare">
<phpcpd>
<fileset refid="our-files" />
<formatter outfile="reports/cpd.xml" type="pmd" />
</phpcpd>
</target>
<!-- <target name="pdepend" depends="prepare">
<phpdepend allowedFileExtensions="*.php">
<fileset refid="our-files" />
<logger outfile="reports/pdepend.xml" type="jdepend-xml" />
<logger outfile="reports/pdepend.svg" type="jdepend-chart" />
</phpdepend>
</target>-->
</project>