Permalink
Browse files

build cleanup

  • Loading branch information...
theseer committed Feb 9, 2019
1 parent 751ce74 commit 4cf5507aba36733e1810916f1412501ca905dcad
Showing with 24 additions and 1 deletion.
  1. +20 −1 build.xml
  2. +4 −0 phive.xml
@@ -20,7 +20,7 @@

<!-- Run unit tests and generate junit.xml and clover.xml -->
<target name="phpunit">
<exec executable="phpunit" failonerror="true"/>
<exec executable="${basedir}/tools/phpunit" failonerror="true"/>
</target>

<!-- Run pdepend, phpmd, phpcpd, and phpcs in parallel -->
@@ -170,5 +170,24 @@
<delete dir="${basedir}/build/phar/_tmp" />
</target>

<target name="release" description="Make a release based on latest tag">

<exec executable="bash" outputproperty="version">
<arg value="-c"/>
<arg value="${basedir}/build/phar/phpab*.phar --version | awk 'BEGIN { ORS = &quot;&quot;; } {print $2}'"/>
</exec>

<exec executable="gpg">
<arg value="--local-user" />
<arg value="arne@blankerts.de" />
<arg value="--detach-sign" />
<arg value="--armor" />
<arg value="--output" />
<arg path="${basedir}/build/phar/phpab-${version}.phar.asc" />
<arg path="${basedir}/build/phar/phpab-${version}.phar" />
</exec>

</target>

<target name="build" depends="clean,parallelTasks,phpunit"/>
</project>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpunit" version="^7.5" installed="7.5.3" location="./tools/phpunit" copy="false"/>
</phive>

0 comments on commit 4cf5507

Please sign in to comment.