forked from LiveCarta/LiveCartaWP
38 lines
1.3 KiB
XML
38 lines
1.3 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" longfile="posix">
|
|
<tarfileset dir="${basedir}/..">
|
|
<include name="*/**" />
|
|
<exclude name="build/**" />
|
|
<exclude name="vendor/**" />
|
|
</tarfileset>
|
|
</tar>
|
|
</target>
|
|
|
|
</project>
|
|
|