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

NOTE: this differs from upstream in that the kirkstone branch is being
used instead of the master branch in ci/base.yml

Signed-off-by: Jon Mason <jon.mason@arm.com>
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
2022-08-03 16:34:17 +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