44 строки
1.7 KiB
XML
44 строки
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<project name="test resource prepration and cleanup">
|
|
<target name="setup">
|
|
<echo message="setup test resource"/>
|
|
<exec osfamily="windows" executable="cmd.exe">
|
|
<arg value="/c"/>
|
|
<arg value=".\src\libs\setup.bat"/>
|
|
<arg value="${azure.test.resourcegroup}"/>
|
|
<arg value="${azure.test.dbname}"/>
|
|
<redirector outputproperty="cosmosdb.key"/>
|
|
</exec>
|
|
<exec osfamily="unix" executable="bash">
|
|
<arg value="./src/libs/setup.sh"/>
|
|
<arg value="${azure.test.resourcegroup}"/>
|
|
<arg value="${azure.test.dbname}"/>
|
|
<redirector outputproperty="cosmosdb.key"/>
|
|
</exec>
|
|
<exec osfamily="unix" executable="az">
|
|
<arg value="--help"/>
|
|
</exec>
|
|
<exec osfamily="windows" executable="az">
|
|
<arg value="--help"/>
|
|
</exec>
|
|
<propertyfile file="./src/test/resources/application.properties">
|
|
<entry key="cosmosdb.key" value="${cosmosdb.key}"/>
|
|
<entry key="cosmosdb.uri" value="https://${azure.test.dbname}.documents.azure.com:443"/>
|
|
</propertyfile>
|
|
</target>
|
|
<target name="cleanup">
|
|
<echo message="cleanup test resource"/>
|
|
<exec osfamily="windows" executable="cmd.exe">
|
|
<arg value="/c"/>
|
|
<arg value=".\src\libs\cleanup.bat"/>
|
|
<arg value="${azure.test.resourcegroup}"/>
|
|
<arg value="${azure.test.dbname}"/>
|
|
</exec>
|
|
<exec osfamily="unix" executable="bash">
|
|
<arg value="./src/libs/cleanup.sh"/>
|
|
<arg value="${azure.test.resourcegroup}"/>
|
|
<arg value="${azure.test.dbname}"/>
|
|
</exec>
|
|
</target>
|
|
</project>
|