Skip to content

Commit a5ea0a9

Browse files
author
Federico Fissore
committed
Script used by the Jenkins Github Pull Request Builder plugin
1 parent 11cfe2b commit a5ea0a9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

build/build_pull_request.bash

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash -e
2+
3+
if [ "x${ghprbPullId}" == "x" ]
4+
then
5+
exit 1
6+
fi
7+
8+
ant -Djava.net.preferIPv4Stack=true -Dplatform=linux64 -Dlinux64=1 clean build test
9+
10+
ERRORS=`grep '<error' ../app/test-bin/TEST-*.xml | wc -l`
11+
if [ $ERRORS -ne 0 ] ;
12+
then
13+
exit $ERRORS
14+
fi
15+
16+
VERSION="PR-${ghprbPullId}"
17+
18+
ant -Djava.net.preferIPv4Stack=true -Dplatform=linux32 -Dlinux32=1 -Dversion="${VERSION}" dist
19+
ant -Djava.net.preferIPv4Stack=true -Dplatform=linux64 -Dlinux64=1 -Dversion="${VERSION}" dist
20+
ant -Djava.net.preferIPv4Stack=true -Dplatform=windows -Dwindows=1 -Dversion="${VERSION}" dist
21+
ant -Djava.net.preferIPv4Stack=true -Dplatform=macosx -Dmacosx=1 -Dversion="${VERSION}" dist
22+
23+
echo "http://downloads.arduino.cc/javaide/pull_requests/arduino-${VERSION}-linux32.zip"
24+
echo "http://downloads.arduino.cc/javaide/pull_requests/arduino-${VERSION}-linux64.zip"
25+
echo "http://downloads.arduino.cc/javaide/pull_requests/arduino-${VERSION}-windows.zip"
26+
echo "http://downloads.arduino.cc/javaide/pull_requests/arduino-${VERSION}-macosx.zip"

0 commit comments

Comments
 (0)