1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-11-29 10:24:12 +01:00
Arduino/build/build_pull_request.bash

23 lines
678 B
Bash
Raw Normal View History

#!/bin/bash -ex
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $DIR
if [ "x${ghprbPullId}" == "x" ]
then
exit 1
fi
ant -Djava.net.preferIPv4Stack=true -Dplatform=linux64 -Dlinux64=1 clean build
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}"
2018-06-04 15:10:19 +02:00
./build_all_dist.bash -Dversion="${VERSION}" -DMACOSX_BUNDLED_JVM=$MACOSX_BUNDLED_JVM -DWINDOWS_BUNDLED_JVM=$WINDOWS_BUNDLED_JVM -DLINUX32_BUNDLED_JVM=$LINUX32_BUNDLED_JVM -DLINUX64_BUNDLED_JVM=$LINUX64_BUNDLED_JVM -DLINUXARM_BUNDLED_JVM=$LINUXARM_BUNDLED_JVM -DLINUXAARCH64_BUNDLED_JVM=$LINUXAARCH64_BUNDLED_JVM