-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.xml
executable file
·20 lines (20 loc) · 1.09 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:sf="antlib:com.salesforce" default="sf" basedir=".">
<target name="Build">
<echo>Continuous Integration Build</echo>
<taskdef resource="net/sf/antcontrib/antlib.xml" />
<property environment="env" />
<echo>Branch: ${env.CIRCLE_BRANCH}</echo>
<property file="build.${env.CIRCLE_BRANCH}.properties" />
<echo>${build.cmd}</echo>
<antcall target="${build.cmd}" />
</target>
<target name="DeployAndCheckOnly">
<echo>Deploy Code CheckOnly in Org with username: ${sf.username}</echo>
<sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="${user.dir}/src" logType="Detail" checkOnly="${sf.checkOnly}" />
</target>
<target name="DeployAndRunAllTests">
<echo>Deploy and RunAllTests in Org with username: ${sf.username}</echo>
<sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="${user.dir}/src" logType="Detail" runallTests="${sf.runallTests}" />
</target>
</project>