-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
51 lines (47 loc) · 1.78 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="TingGenerator" default="composer_install">
<target name="composer_install">
<echo msg="Composer install" />
<exec command="composer install" checkreturn="true" passthru="true"/>
</target>
<target name="check">
<phingcall target="phpcs" />
<phingcall target="test" />
</target>
<target name="phpcs">
<php expression="include('vendor/autoload.php')"/>
<phpcodesniffer
standard="PSR2"
description="Run PSR2 standards over the codebase"
showSniffs="true"
showWarnings="true"
format="full"
haltonerror="true"
haltonwarning="true">
<fileset refid="srcFiles" />
<formatter type="full" outfile="php://stdout" />
<formatter type="gitblame" outfile="php://stdout" />
</phpcodesniffer>
</target>
<target name="test">
<taskdef name="atoum" classpath="./vendor/atoum/atoum/resources/phing/" classname="AtoumTask"/>
<atoum
atoumpharpath="./vendor/bin/atoum"
bootstrap="./vendor/autoload.php"
codecoverage="true"
codecoveragereportextensionpath="./tests/coverage/"
codecoveragereportextensionurl="file://${fullpath}/tests/coverage/index.html"
showcodecoverage="true"
showmissingcodecoverage="true"
showprogress="true"
showmemory="true"
showduration="true">
<fileset dir="./tests/units">
<include name="**/*.php" />
</fileset>
</atoum>
</target>
<fileset dir="src" id="srcFiles">
<include name="**/*.php" />
</fileset>
</project>