forked from microsoft/spring-data-cosmosdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
37 lines (37 loc) · 1.57 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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="documentdb.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="documentdb.key"/>
</exec>
<propertyfile file="./src/test/resources/application.properties">
<entry key="documentdb.key" value="${documentdb.key}"/>
<entry key="documentdb.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>