Files
meta-zephyr/ci/check-warnings
Jon Mason 93c44255a4 CI: add Gitlab CI support
Mostly stolen from meta-arm

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-07-13 11:30:44 +08:00

426 B
Executable File

#! /bin/bash

Expects the path to a log file as $1, and if this file has any content

then display the contents and exit with an error code.

set -e -u

LOGFILE=$1

LINES=$(grep --invert-match "relocations in .text" $LOGFILE | wc -l) if test "$LINES" -ne 0; then echo ============================== echo The build had warnings/errors: echo ============================== cat $LOGFILE exit 1 fi

exit 0