Skip to content
Snippets Groups Projects
Unverified Commit 1a83c206 authored by Koen Zandberg's avatar Koen Zandberg
Browse files

ci: murdock: Replace hardcoded path by bindir var

parent c3d2bf92
No related branches found
No related tags found
No related merge requests found
......@@ -73,10 +73,12 @@ compile() {
[ "$board" = "makefile_broken" ] && error "$0: Makefile in \"$appdir\" seems to be broken!"
# set build directory. CI ensures only one build at a time in $(pwd).
rm -rf build
export BINDIR="$(pwd)/build"
export PKGDIRBASE="${BINDIR}/pkg"
# Pre-build cleanup
rm -rf ${BINDIR}
[ -n "$DWQ_WORKER" ] && \
echo "-- running on worker ${DWQ_WORKER} thread ${DWQ_WORKER_THREAD}, build number $DWQ_WORKER_BUILDNUM."
......@@ -96,10 +98,13 @@ compile() {
fi
fi
test -d ${BINDIR} && echo "-- build directory size: $(du -sh ${BINDIR} | cut -f1)"
if [ -d ${BINDIR} ]
then
echo "-- build directory size: $(du -sh ${BINDIR} | cut -f1)"
# cleanup
rm -Rf build
# cleanup
rm -rf ${BINDIR}
fi
return $RES
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment