From 0a9b0ce7849f3f48ddf5f59821839fd3f2456d3c Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 23 Feb 2017 18:45:41 +0100 Subject: [PATCH] CI: murdock2: compile everything in same directory --- .murdock | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.murdock b/.murdock index fe08ee7e31..51de3848c8 100755 --- a/.murdock +++ b/.murdock @@ -62,6 +62,11 @@ compile() { local appdir=$1 local board=$2 + # set build directory. CI ensures only one build at a time in $(pwd). + rm -rf build + export BINDIR="$(pwd)/build" + export PKGDIRBASE="${BINDIR}/pkg" + [ -n "$DWQ_WORKER" ] && \ echo "-- running on worker ${DWQ_WORKER} thread ${DWQ_WORKER_THREAD}, build number $DWQ_WORKER_BUILDNUM." @@ -81,8 +86,10 @@ compile() { fi fi + echo "-- build directory size: $(du -sh ${BINDIR} | cut -f1)" + # cleanup - rm -Rf "${appdir}/bin/${board}" "${appdir}/bin/pkg/${board}" + rm -Rf build return $RES }