forked from LiveCarta/LiveCartaWP
LAW-2819
This commit is contained in:
37
build/build.xml
Normal file
37
build/build.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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>
|
||||
|
||||
Reference in New Issue
Block a user