Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 2 | # |
Leonardo Sandoval | 579c737 | 2020-10-23 15:23:32 -0500 | [diff] [blame] | 3 | # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | set -e |
| 9 | |
| 10 | # If we're skipping LAVA or Juno |
| 11 | if [ "$skip_juno" ] || [ "$skip_runs" ]; then |
| 12 | exit 1 |
| 13 | fi |
| 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 Mazzucato | 8a6787a | 2020-04-28 11:15:47 +0100 | [diff] [blame] | 19 | if echo "$RUN_CONFIG" | grep -iqe '^juno' -iqe '^scp_juno'; then |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 20 | exit 0 |
| 21 | else |
| 22 | exit 1 |
| 23 | fi |