2015-02-02 09:48:47 +01:00
|
|
|
#!/bin/bash -ex
|
2014-08-25 18:00:25 +02:00
|
|
|
|
2015-03-20 11:43:20 +01:00
|
|
|
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
|
|
cd $DIR
|
|
|
|
|
2014-08-25 18:00:25 +02:00
|
|
|
if [ "x${ghprbPullId}" == "x" ]
|
|
|
|
then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2015-03-20 11:43:20 +01:00
|
|
|
ant -Djava.net.preferIPv4Stack=true -Dplatform=linux64 -Dlinux64=1 clean build
|
2014-08-25 18:00:25 +02:00
|
|
|
|
|
|
|
ERRORS=`grep '<error' ../app/test-bin/TEST-*.xml | wc -l`
|
|
|
|
if [ $ERRORS -ne 0 ] ;
|
|
|
|
then
|
|
|
|
exit $ERRORS
|
|
|
|
fi
|
|
|
|
|
2014-08-25 18:18:03 +02:00
|
|
|
VERSION="PR-${ghprbPullId}-BUILD-${BUILD_NUMBER}"
|
2014-08-25 18:00:25 +02:00
|
|
|
|
2015-04-13 17:43:41 +02:00
|
|
|
./build_all_dist.bash -Dversion="${VERSION}" -DMACOSX_BUNDLED_JVM=$MACOSX_BUNDLED_JVM -DWINDOWS_BUNDLED_JVM=$WINDOWS_BUNDLED_JVM
|
2015-03-25 11:15:15 +01:00
|
|
|
|