ci: murdock: print worker information for static tests
This commit is contained in:
parent
b6fe13684b
commit
30beba6897
10
.murdock
10
.murdock
@ -65,6 +65,11 @@ get_compile_jobs() {
|
|||||||
| xargs '-d\n' -n 1 echo $0 compile
|
| xargs '-d\n' -n 1 echo $0 compile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_worker() {
|
||||||
|
[ -n "$DWQ_WORKER" ] && \
|
||||||
|
echo "-- running on worker ${DWQ_WORKER} thread ${DWQ_WORKER_THREAD}, build number $DWQ_WORKER_BUILDNUM."
|
||||||
|
}
|
||||||
|
|
||||||
# compile one app for one board. delete intermediates.
|
# compile one app for one board. delete intermediates.
|
||||||
compile() {
|
compile() {
|
||||||
local appdir=$1
|
local appdir=$1
|
||||||
@ -79,8 +84,7 @@ compile() {
|
|||||||
# Pre-build cleanup
|
# Pre-build cleanup
|
||||||
rm -rf ${BINDIR}
|
rm -rf ${BINDIR}
|
||||||
|
|
||||||
[ -n "$DWQ_WORKER" ] && \
|
print_worker
|
||||||
echo "-- running on worker ${DWQ_WORKER} thread ${DWQ_WORKER_THREAD}, build number $DWQ_WORKER_BUILDNUM."
|
|
||||||
|
|
||||||
# sanity checks
|
# sanity checks
|
||||||
[ $# -ne 2 ] && error "$0: compile: invalid parameters (expected \$appdir \$board)"
|
[ $# -ne 2 ] && error "$0: compile: invalid parameters (expected \$appdir \$board)"
|
||||||
@ -114,6 +118,8 @@ static_tests() {
|
|||||||
local repo=${CI_BASE_REPO:-https://github.com/RIOT-OS/RIOT}
|
local repo=${CI_BASE_REPO:-https://github.com/RIOT-OS/RIOT}
|
||||||
local branch=${CI_BASE_BRANCH:-master}
|
local branch=${CI_BASE_BRANCH:-master}
|
||||||
|
|
||||||
|
print_worker
|
||||||
|
|
||||||
OUT="$(git remote add upstream $repo 2>&1 && git fetch upstream ${branch}:${branch} 2>&1)"
|
OUT="$(git remote add upstream $repo 2>&1 && git fetch upstream ${branch}:${branch} 2>&1)"
|
||||||
RES=$?
|
RES=$?
|
||||||
if [ $RES -ne 0 ]; then
|
if [ $RES -ne 0 ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user