-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
61 lines (53 loc) · 1.87 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>
<target name="qc" depends="phpmd,phpcs,phpunit,sensio-security"/>
<target name="phpmd">
<exec executable="php" failonerror="true">
<arg value="bin/phpmd"/>
<arg value="src"/>
<arg value="text"/>
<arg value="codesize"/>
</exec>
</target>
<target name="phpcs">
<exec executable="php" failonerror="true">
<arg value="bin/phpcs"/>
<arg value="src"/>
<arg value="--standard=PSR2"/>
<arg value="--extensions=php"/>
</exec>
</target>
<target name="phpcsfixer">
<exec executable="php" failonerror="true">
<arg value="bin/php-cs-fixer"/>
<arg value="fix"/>
<arg value="src/"/>
<arg value="--rules=@Symfony,-concat_without_spaces"/>
<arg value="--dry-run"/>
<arg value="-v"/>
<arg value="--using-cache=false"/>
</exec>
</target>
<target name="phpcsfixer-fix">
<exec executable="php" failonerror="true">
<arg value="bin/php-cs-fixer"/>
<arg value="fix"/>
<arg value="src/"/>
<arg value="--rules=@Symfony,-concat_without_spaces"/>
<arg value="-v"/>
<arg value="--using-cache=false"/>
</exec>
</target>
<target name="phpunit">
<exec executable="php" failonerror="true">
<arg value="bin/phpunit"/>
<arg value="-c"/>
<arg value="app/phpunit.xml.dist"/>
</exec>
</target>
<target name="sensio-security" description="Security Advisories Checker">
<exec executable="curl" failonerror="true">
<arg line='-H "Accept: text/plain" https://security.sensiolabs.org/check_lock -F [email protected]'/>
</exec>
</target>
</project>