Skip to content

Commit

Permalink
CI: murdock2: compile everything in same directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Mar 13, 2017
1 parent 28ce575 commit 0a9b0ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .murdock
Original file line number Diff line number Diff line change
Expand Up @@ -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."

Expand All @@ -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
}
Expand Down

0 comments on commit 0a9b0ce

Please sign in to comment.