blob: 914694882f42f9ff0234b50ff55df1107feeda25 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelalem917b43e2020-08-04 11:39:55 -05002#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8# This script runs the static checks in tf-static-checks
9# jenkins job.
10
11if [ "$REPO_UNDER_TEST" = "trusted-firmware" ]; then
12 cd "$TF_CHECKOUT_LOC"
13else
14 cd "$TFTF_CHECKOUT_LOC"
15fi
16
17export IS_CONTINUOUS_INTEGRATION=1
18static_fail=0
19
20if ! "$CI_ROOT/script/static-checks/static-checks.sh"; then
21 static_fail=1
22fi
23
24if [ -f "static-checks.log" ]; then
25 mv "static-checks.log" "$WORKSPACE"
26fi
27
28exit "$static_fail"