forked from etna-alternance/composer-translation-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
50 lines (50 loc) · 1.81 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
<?xml version="1.0"?>
<project name="composer-translation-provider" default="maintainability" basedir='.'>
<target name="maintainability"
depends="phploc, phpcs, phpcpd, phpmd, behat, behathtml, ocular">
</target>
<target name="phploc">
<exec executable="phploc" passthru="true" checkreturn="true">
<arg path="app/"/>
<arg path="src/"/>
</exec>
</target>
<target name="phpcs">
<exec executable="phpcs" passthru="true" checkreturn="true">
<arg value="-p"/>
<arg value="--standard=PSR2"/>
<arg path="app/"/>
<arg path="src/"/>
</exec>
</target>
<target name="phpcpd">
<exec executable="phpcpd" passthru="true" checkreturn="true">
<arg value="--progress"/>
<arg path="app/"/>
<arg path="src/"/>
</exec>
</target>
<target name="phpmd">
<exec executable="phpmd" passthru="true" checkreturn="true">
<arg path="src/"/>
<arg value="text"/>
<arg value="phpmd.xml"/>
<arg path="app/"/>
<arg value="text"/>
<arg value="phpmd.xml"/>
</exec>
</target>
<target name="behat" description="Run behat test">
<exec executable="behat" passthru="true" checkreturn="true">
<arg value="--colors" />
<arg value="-p"/>
<arg value="ci"/>
</exec>
</target>
<target name="behathtml">
<exec command="open tmp/behat/coverage/index.html" passthru="true"/>
</target>
<target name="ocular">
<exec command="ocular code-coverage:upload --access-token='267e62a7ad11baa9141a830aabec9493c09feb4ee84b125b2ae45fe304502be5' --format=php-clover tmp/behat/coverage.clover.xml" passthru="true"/>
</target>
</project>