Skip to content

Commit

Permalink
build_pull_requests now moves the artifacts to the parent folder: thi…
Browse files Browse the repository at this point in the history
…s allows calling "clean" target before each build
  • Loading branch information
Federico Fissore committed Feb 2, 2015
1 parent f7bc69a commit d61568a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions build/build_pull_request.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash -ex

if [ "x${ghprbPullId}" == "x" ]
then
Expand All @@ -15,8 +15,15 @@ fi

VERSION="PR-${ghprbPullId}-BUILD-${BUILD_NUMBER}"

ant -Djava.net.preferIPv4Stack=true -Dplatform=linux32 -Dlinux32=1 -Dversion="${VERSION}" dist
ant -Djava.net.preferIPv4Stack=true -Dplatform=linux64 -Dlinux64=1 -Dversion="${VERSION}" dist
ant -Djava.net.preferIPv4Stack=true -Dplatform=windows -Dwindows=1 -Dversion="${VERSION}" dist
ant -Djava.net.preferIPv4Stack=true -Dplatform=macosx -Dmacosx=1 -Dversion="${VERSION}" dist
ant -Djava.net.preferIPv4Stack=true -Dplatform=linux32 -Dversion="${VERSION}" clean dist
mv linux/arduino-*$VERSION*.tar.xz ../

ant -Djava.net.preferIPv4Stack=true -Dplatform=linux64 -Dversion="${VERSION}" clean dist
mv linux/arduino-*$VERSION*.tar.xz ../

ant -Djava.net.preferIPv4Stack=true -Dplatform=windows -Dversion="${VERSION}" clean dist
mv windows/arduino-*$VERSION*.zip ../

ant -Djava.net.preferIPv4Stack=true -Dplatform=macosx -Dversion="${VERSION}" clean dist
mv macosx/arduino-*$VERSION*.zip ../

0 comments on commit d61568a

Please sign in to comment.