forked from InterNations/kodierungsregelwerksammlung
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
36 lines (32 loc) · 1.26 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
<?xml version="1.0"?>
<project name="kodierungsregelwerksammlung" default="build">
<target name="build" description="Run CI jobs" depends="clean,prepare,phpunit,phpcs"/>
<target name="clean">
<delete dir="${basedir}/build/" includes="**/*" excludes="**/.gitkeep"/>
<mkdir dir="${basedir}/build/logs/"/>
<mkdir dir="${basedir}/build/coverage/"/>
</target>
<target name="prepare">
<get src="http://getcomposer.org/composer.phar" dest="build/composer.phar"/>
<exec executable="php" failonerror="true">
<arg value="build/composer.phar"/>
<arg value="install"/>
<arg value="--dev"/>
</exec>
</target>
<target name="phpunit">
<exec executable="phpunit" failonerror="true">
</exec>
</target>
<target name="phpcs">
<delete>
<fileset dir="${basedir}/vendor" includes="**/build/**"/>
</delete>
<exec executable="./vendor/bin/phpcs" failonerror="true">
<arg value="--standard=ruleset.xml"/>
<arg value="--report=checkstyle" />
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
<arg value="./src/InterNations/Sniffs"/>
</exec>
</target>
</project>