forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 28
/
build-test-performance.xml
44 lines (29 loc) · 1.33 KB
/
build-test-performance.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
38
39
40
41
42
43
44
<?xml version="1.0"?>
<project basedir="." default="test" name="portal-test-performance" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="run-performance-test">
<fail message="Please set the property ${performance.branch.main}." unless="performance.branch.main" />
<fail message="Please set the property ${performance.branch.temp}." unless="performance.branch.temp" />
<ssh-execute>
<![CDATA[
export ANT_HOME=/opt/ant
export ANT_OPTS="-Xmx1024m -XX:MaxPermSize=512m"
export JAVA_HOME=/opt/jvms/default_jdk
export PATH=${PATH}:${ANT_HOME}/bin:${JAVA_HOME}/bin
export SSH_TTY=/dev/pts/7
cd /home/trunks/git/liferay-portal
git reset --hard
git checkout ${performance.branch.main}
git pull git@github.com:liferay/liferay-portal.git ${performance.branch.main}
git branch | egrep "temp" | xargs git branch -D
cd /home/trunks/git/liferay-benchmark-ee
ant stop all-database all-portal start-visualvm all-grinder all-sample stop
cd /home/trunks/git/liferay-portal
git fetch git@github.com:brianchandotcom/liferay-portal.git ${performance.branch.temp}:temp
git checkout temp
cd /home/trunks/git/liferay-benchmark-ee
ant stop all-database all-portal start-visualvm all-grinder all-sample stop
]]>
</ssh-execute>
</target>
</project>