-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.xml
28 lines (28 loc) · 1.51 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
<?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 Docs</echo>
<antcall target="SfApexDoc" /-->
<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" testLevel="${sf.testLevel}" />
</target>
<!-- There's really no point in running this in CircleCI unless we can do something with the output-->
<target name="SfApexDoc">
<java fork="true" jar="${user.dir}/lib/SfApexDoc.jar" failonerror="true">
<arg line="-d -s ${user.dir}/src/classes -t ${user.dir}/docs -a ${user.dir}/SfApexDocAuthor.txt -h ${user.dir}/SfApexDocHome.txt" />
</java>
</target>
</project>