blob: b2d3a4821769d63577baf609d565afb0f6c09dd4 [file] [log] [blame]
Zelalem917b43e2020-08-04 11:39:55 -05001#!/bin/bash
2#
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"