blob: 0f05af40fcb3e36f888334432fbc80cb6f3e0807 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8nom_file="$WORKSPACE/nominations"
9rules_file="$CI_ROOT/script/trusted-firmware.nomination.py"
10if [ -f "$rules_file" ]; then
11 cd "$TF_CHECKOUT_LOC"
12 "$CI_ROOT/script/gen_nomination.py" "$rules_file" > "$nom_file"
13 if [ -s "$nom_file" ]; then
14 exit 0
15 else
16 # No nominations
17 exit 1
18 fi
19fi
20
21exit 1