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:
parent
ff85c5b9c2
commit
c1f6e59af2
13
.murdock
13
.murdock
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user