This repository was archived by the owner on Feb 7, 2020. It is now read-only.
forked from InterNations/SolrQueryComponent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
38 lines (34 loc) · 1.55 KB
/
Copy pathbuild.xml
File metadata and controls
38 lines (34 loc) · 1.55 KB
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
<?xml version="1.0"?>
<project name="SolrQueryComponent" 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">
<arg line="--exclude-group performance"/>
</exec>
</target>
<target name="phpcs">
<exec executable="sed" failonerror="true">
<arg line="-i '/ShortArraySyntaxSniff/d' vendor/internations/kodierungsregelwerksammlung/ruleset.xml"/>
</exec>
<delete file="${basedir}/vendor/internations/kodierungsregelwerksammlung/src/InterNations/Sniffs/Syntax/ShortArraySyntaxSniff.php" />
<exec executable="./vendor/bin/phpcs" failonerror="true">
<arg value="--standard=vendor/internations/kodierungsregelwerksammlung/ruleset.xml"/>
<arg value="--report=checkstyle" />
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml" />
<arg value="./src/"/>
</exec>
</target>
</project>