changeset 9975525bbb11 in /var/www/hg/buildbot
author: Thomas Genty <
toml...@openbricks.org>
details:
http://hg.geexbox.org/buildbot?cmd=changeset;node=9975525bbb11
description:
don't retrieve sources for each build, share them
diffstat:
buildbot.sh | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diffs (44 lines):
diff -r d81a8250e4b6 -r 9975525bbb11 buildbot.sh
--- a/buildbot.sh Wed Sep 19 19:55:21 2012 -0700
+++ b/buildbot.sh Wed Mar 13 11:58:31 2013 +0100
@@ -9,6 +9,8 @@
STAMPS=$BASE/stamps
LOGS=$BASE/logs
LOGFILE=$BASE/logs/$REPONAME.log
+STAMPSGET=$BASE/src/.stamps
+
if [ -r $STAMPS/$REPONAME/rev ]; then
OLDREV=`cat $STAMPS/$REPONAME/rev`
fi
@@ -40,7 +42,7 @@
EOF
}
-mkdir -p $BUILD $SOURCES $SNAPSHOTS $STAMPS/$REPONAME $LOGS
+mkdir -p $BUILD $SOURCES $SNAPSHOTS $STAMPS/$REPONAME $LOGS $STAMPSGET
log "Starting"
if [ -r $STAMPS/lock ]; then
log "Another buildbot instance (`cat $STAMPS/lock`) is running, aborting."
@@ -109,6 +111,7 @@
rm -f $STAMPS/$NAME
hg clone $REPO $NAME > $BUILDLOG
ln -s $SOURCES $NAME/sources
+ ln -s $STAMPSGET $NAME/.stamps
fi
if [ "$STAMPS/$REPONAME/$NAME" -nt $conffile ]; then
log "Build $NAME is up to date"
@@ -143,14 +146,6 @@
continue
fi
rm -rf binaries
- log "Fetching $NAME sources"
- make get >> $BUILDLOG 2>&1
- if [ $? -ne 0 ]; then
- log "$NAME get failed"
- mailfail get
- rm -f "$STAMPS/$REPONAME/$NAME"
- continue
- fi
log "Making $NAME"
make >> $BUILDLOG 2>&1
if [ $? -eq 0 ]; then