-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.build.xml
45 lines (38 loc) · 1.5 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
<project name="FALQUOTA-Integration" default="build">
<target name="clean">
<delete dir="${basedir}/.Build"/>
</target>
<target name="prepare">
<mkdir dir="${basedir}/.Build"/>
<mkdir dir="${basedir}/.Build/logs"/>
<mkdir dir="${basedir}/.Build/tests"/>
<mkdir dir="${basedir}/.Build/cpd"/>
<mkdir dir="${basedir}/.Build/codebrowser"/>
<mkdir dir="${basedir}/.Build/dependencies"/>
<mkdir dir="${basedir}/.Build/docblox"/>
</target>
<target name="php_cs_fixer" description="Find coding standard violations using PHP-CS-Fixer">
<exec executable="composer" failonerror="true">
<arg value="cs:fix" />
<arg value="--" />
<arg value="--dry-run" />
</exec>
</target>
<target name="php_lint" description="Find linting errors using PHP">
<apply executable="php" failonerror="true">
<arg value="-l"/>
<fileset dir="${basedir}">
<include name="**/*.php"/>
<exclude name="phpunit/**"/>
<exclude name="**/.build/**"/>
<exclude name="**/.ddev/**"/>
<exclude name="**/Build/**"/>
<exclude name="**/Tests/**"/>
<exclude name="**/lib/**"/>
<exclude name="**/Vendor/**"/>
</fileset>
</apply>
</target>
<target name="build" depends="clean,prepare"/>
<target name="lint" depends="php_lint,php_cs_fixer"/>
</project>