1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-03 14:24:15 +01:00
Arduino/build/build_pull_request.bash
2015-03-20 11:43:20 +01:00

22 lines
409 B
Bash
Executable File

#!/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
VERSION="PR-${ghprbPullId}-BUILD-${BUILD_NUMBER}"
./build_all_dist.bash -Dversion="${VERSION}"