-
Notifications
You must be signed in to change notification settings - Fork 5
/
bambooBuild.sh
executable file
·49 lines (37 loc) · 1.39 KB
/
bambooBuild.sh
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
45
46
47
48
49
#! /bin/sh
if [ "$PYTHON_BIN_PATH" != "" ]
then
PATH=$PYTHON_BIN_PATH:$PATH
fi
# Having problems with PATH so find out what it is.
/bin/echo "XXXXXXXXXXX $PATH"
/bin/echo "XXXXXXXXXXX $HOME"
# Specify the version of Groovy and Gant to use for the tests. These will be downloaded.
groovyVersion=1.7.4
gantVersion=1.9.3
# By default build for 32-bit systems. If the parameter is 64 then build for 64-bit systems.
if [ $# -eq 1 ]
then
if [ $1 -eq 64 ]
then
widthParameter="width=64"
fi
fi
# Bamboo fiddles with the standard path so have to force things by using absolute paths.
groovyZipName=groovy-binary-$groovyVersion.zip
groovyInstallPath=groovy-$groovyVersion
/bin/rm -rf $groovyZipName $groovyInstallPath
/usr/bin/wget http://dist.codehaus.org/groovy/distributions/$groovyZipName
/usr/bin/unzip $groovyZipName
export GROOVY_HOME=$groovyInstallPath
gantZipName=gant-$gantVersion.zip
gantInstallPath=gant-$gantVersion
/bin/rm -rf $gantZipName $gantZipName
/usr/bin/wget http://dist.codehaus.org/gant/distributions/$gantZipName
/usr/bin/unzip $gantZipName
export GANT_HOME=$gantInstallPath
# Remove any inherited values in JAVA_OPTS since they shouldn't be there. Is the return code from scons
# the return code of the script?
# Hope scons is on the path!
#__JLAUNCHER_DEBUG=true JAVA_OPTS= scons $widthParameter test
JAVA_OPTS= scons $widthParameter xmlOutputRequired=True test