Skip to content

Commit

Permalink
Auto-upgrading and then displaying composer version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Apr 17, 2013
1 parent 10c1232 commit 4e91215
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,19 @@
</target>

<target name="composer-install" description="Installs dependencies via composer install">
<exec executable="composer" failonerror="true">
<arg value="install" />
<arg value="--dev" />
<arg value="--prefer-source" />
</exec>
<sequential>
<exec executable="composer" failonerror="true">
<arg value="self-update" />
</exec>
<exec executable="composer" failonerror="true">
<arg value="--version" />
</exec>
<exec executable="composer" failonerror="true">
<arg value="install" />
<arg value="--dev" />
<arg value="--prefer-source" />
</exec>
</sequential>
</target>

<target
Expand Down Expand Up @@ -102,12 +110,12 @@

</echo>
<exec
executable="${basedir}/vendor/bin/phpunit"
output="${basedir}/build/test-results/@{component}.log"
error="${basedir}/build/test-results/@{component}.log"
failonerror="true"
append="true"
>
executable="${basedir}/vendor/bin/phpunit"
output="${basedir}/build/test-results/@{component}.log"
error="${basedir}/build/test-results/@{component}.log"
failonerror="true"
append="true"
>
<arg value="-c" />
<arg value="${basedir}/tests/phpunit.xml.dist" />
<arg value="${basedir}/tests/ZendTest/@{component}" />
Expand Down

0 comments on commit 4e91215

Please sign in to comment.