1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

CI: murdock: add workdir sanity check to compile step

This commit is contained in:
Kaspar Schleiser 2017-01-25 13:02:31 +01:00
parent ff85c5b9c2
commit c1f6e59af2

View File

@ -52,11 +52,22 @@ get_compile_jobs() {
| xargs '-d\n' -n 1 echo $0 compile
}
check_workdir() {
[ -d examples/gnrc_tcp_cli -a -d tests/pkg_libcoap ] || {
echo "workdir check failed! pwd=$(pwd)"
echo "--- ls:"
ls -la
exit 1
}
}
# compile one app for one board. delete intermediates.
compile() {
local appdir=$1
local board=$2
check_workdir
CCACHE_BASEDIR="$(pwd)" BOARD=$board RIOT_CI_BUILD=1 \
make -C${appdir} clean all -j${JOBS:-4}
RES=$?
@ -70,6 +81,8 @@ compile() {
BOARD=$board make --no-print-directory -C${appdir} clean clean-intermediates
check_workdir
return $RES
}