blob: aa0449ba9407399423c748871efae72780c381ed [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
8set -e
9
10# If we're skipping LAVA or Juno
11if [ "$skip_juno" ] || [ "$skip_runs" ]; then
12 exit 1
13fi
14
15# For Juno runs, we need let the board download build artefacts using a URL. The
16# only way to have a board-accessible URL at the moment is to have build
17# artefacts archived. Therefore, only for Juno do we spawn the build as a
18# separate job; otherwise, we build within this job.
Nicola Mazzucato8a6787a2020-04-28 11:15:47 +010019if echo "$RUN_CONFIG" | grep -iqe '^juno' -iqe '^scp_juno'; then
Fathi Boudra422bf772019-12-02 11:10:16 +020020 exit 0
21else
22 exit 1
23fi