Skip to content

Commit

Permalink
Implemented: Initial version of PHAR build target.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyS committed Dec 19, 2013
1 parent 282b94c commit 747d018
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,32 @@

<target name="travis" depends="verify, scrutinizer:upload-code-coverage" />

<!-- <target name="release" depends="verify"> -->
<target name="release">
<tempfile property="-temp:phar-composer:binary"
destdir="${basedir}"
deleteonexit="true" />
<property name="phar.readonly" value="off" />

<!-- Remove dev dependencies for release -->
<delete file="${composer.up2date.file}" />
<antcall target="composer:dependencies-install-or-update">
<param name="commons.env" value="release" />
</antcall>

<get src="http://www.lueck.tv/phar-composer/phar-composer.phar" dest="${-temp:phar-composer:binary}" />
<exec executable="${commons.executable.php}" failonerror="true">
<arg value="${-temp:phar-composer:binary}" />
<arg value="build" />
<arg value="${commons.basedir}" />
</exec>

<!-- Update composer deps to normal (dev?) mode -->
<delete file="${composer.up2date.file}" />
<antcall target="composer:dependencies-install-or-update" />
</target>


<target name="scrutinizer:upload-code-coverage"
depends="phpunit:coverage">

Expand Down

0 comments on commit 747d018

Please sign in to comment.