blob: c2caab164a152211dd3849fd84d991d411ecc6a5 [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#!/bin/bash
2#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
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