File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /build
2+ /vendor
3+ /composer.phar
Original file line number Diff line number Diff line change 1+ ; Properties determining, if the build should fail, if one of the tests fails
2+ test-unit.fail-on-violation = true
3+ test-feature.fail-on-violation = true
4+ test-static-cpd.fail-on-violation = true
5+ test-static-checkstyle.fail-on-violation = true
6+ test-static-pmd.fail-on-violation = true
7+ test-static-pdepend.fail-on-violation = false
8+
9+ coding.standard =PSR2
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project name =" Data Object" basedir =" ./" default =" install-and-run" >
3+
4+ <!--
5+ Include local project properties.
6+ -->
7+ <property file =" ${ basedir } /build.properties.local" />
8+ <property file =" ${ basedir } /build.properties" />
9+
10+ <!--
11+ Import main target defintions (extension points)
12+ -->
13+ <import optional =" true" file =" ${ basedir } /ant/main.xml" />
14+
15+ <!--
16+ Enable used modules
17+ -->
18+ <import optional =" true" file =" ${ basedir } /ant/modules/composer.xml" />
19+ <import optional =" true" file =" ${ basedir } /ant/modules/phpunit.xml" />
20+ <import optional =" true" file =" ${ basedir } /ant/modules/checkstyle.xml" />
21+ <import optional =" true" file =" ${ basedir } /ant/modules/pdepend.xml" />
22+ <import optional =" true" file =" ${ basedir } /ant/modules/phpcpd.xml" />
23+ <import optional =" true" file =" ${ basedir } /ant/modules/phpmd.xml" />
24+
25+ <!--
26+ Task group, which installs the build-commons, if they do not exist yet.
27+ -->
28+ <target name =" -install:check" >
29+ <condition property =" -install:dir-exists" >
30+ <available file =" ${ basedir } /ant" type =" dir" />
31+ </condition >
32+ </target >
33+
34+ <target name =" install" depends =" -install:check" unless =" -install:dir-exists" >
35+ <exec executable =" git" failonerror =" true" dir =" ${ basedir } " >
36+ <arg value =" submodule" />
37+ <arg value =" update" />
38+ <arg value =" --init" />
39+ </exec >
40+
41+ <echo >Build-Commons submodule intialized. Please re-run the build.</echo >
42+ <fail />
43+ </target >
44+
45+ <target name =" install-and-run" depends =" install" >
46+ <antcall target =" test" />
47+ </target >
48+ </project >
You can’t perform that action at this time.
0 commit comments