Files
LiveCartaWP/build/build.xml
gregory-p 05ac3bd4f2 LAW-2819
2019-08-09 13:07:58 +03:00

38 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="LawCarta wordpress project" default="build-without-tests">
<target name="build-without-tests"
depends="composer_install, replace, archive"
description="Build project and run all tests"/>
<target name="replace"
unless="replace.done"
description="Replace placeholders in config files" >
<replace dir="../environments" token="@lcWpMySqlHostDev@" value="${lcWpMySqlHostDev}"/>
<replace dir="../environments" token="@lcWpMySqlDbnameDev@" value="${lcWpMySqlDbnameDev}"/>
<replace dir="../environments" token="@lcWpMySqlUsernameDev@" value="${lcWpMySqlUsernameDev}"/>
<replace dir="../environments" token="@lcWpMySqlPasswordDev@" value="${lcWpMySqlPasswordDev}"/>
<property name="replace.done" value="true"/>
</target>
<target name="composer_install">
<exec dir="${basedir}/.." executable="composer" failonerror="true">
<arg line="install" />
</exec>
</target>
<target name="archive">
<tar compression="gzip" destfile="lc_wp.tar.gz">
<tarfileset dir="${basedir}/..">
<include name="*/**" />
<exclude name="build/**" />
<exclude name="vendor/**" />
</tarfileset>
</tar>
</target>
</project>