Skip to content

Commit

Permalink
Adding build infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
lstrojny committed Apr 1, 2013
1 parent 4df09e8 commit fffe3f5
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
34 changes: 34 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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="./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>
Empty file added build/.gitkeep
Empty file.
8 changes: 8 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
</testsuite>
</testsuites>

<logging>
<log type="coverage-html" target="build/coverage" title="SolrQueryComponent"
charset="UTF-8" yui="true" highlight="true"
lowUpperBound="35" highLowerBound="70"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
</logging>

<php>
<ini name="error_reporting" value="-1"/>
</php>
Expand Down

0 comments on commit fffe3f5

Please sign in to comment.