blob: c2caab164a152211dd3849fd84d991d411ecc6a5 [file] [log] [blame]
#!/bin/bash
#
# Copyright (c) 2019, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
nom_file="$WORKSPACE/nominations"
rules_file="$CI_ROOT/script/trusted-firmware.nomination.py"
if [ -f "$rules_file" ]; then
cd "$TF_CHECKOUT_LOC"
"$CI_ROOT/script/gen_nomination.py" "$rules_file" > "$nom_file"
if [ -s "$nom_file" ]; then
exit 0
else
# No nominations
exit 1
fi
fi
exit 1