Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (48 sloc) 2.03 KB
<?xml version="1.0" encoding="UTF-8"?>
<project name="php-refactoring-browser" default="verify" basedir=".">
<!-- Import project specific settings -->
<property file="build.properties" />
<!-- Import the build commons framework -->
<import file="setup/src/main/xml/base.xml" />
<target name="-composer:dependencies-install"
depends="-composer:dependencies-lock-up2date"
unless="-composer:dependencies.lock.up2date">
<exec executable="${commons.executable.php}" failonerror="true">
<arg value="${composer.executable}" />
<arg value="install" />
<arg value="--dev" />
</exec>
<touch file="${composer.up2date.file}" />
</target>
<target name="composer:dependencies-update"
depends="composer:dependencies-lock-exists"
unless="composer:dependencies.lock.exists">
<exec executable="${commons.executable.php}" failonerror="true">
<arg value="${composer.executable}" />
<arg value="update" />
<arg value="--dev" />
</exec>
</target>
<target name="behat"
extensionOf="-test:after~hook">
<exec executable="${commons.executable.php}" failonerror="true" dir="${basedir}">
<arg value="vendor/bin/behat" />
<arg value="--format" />
<arg value="junit,progress" />
<arg value="--out" />
<arg value="${commons:logsdir}," />
</exec>
</target>
<target name="compile-phar" extensionOf="-archive:after~hook">
<exec executable="${commons.executable.php}" failonerror="true" dir="${basedir}/build/dist">
<arg value="../../src/bin/compile" />
</exec>
<exec executable="tar" failonerror="true" dir="${basedir}/build/dist">
<arg value="czvf" />
<arg value="refactor.tar.gz" />
<arg value="refactor.phar" />
<arg value="../../README.md" />
<arg value="../../LICENSE" />
</exec>
</target>
</project>