blob: e189d91a250e002d6c68a06023fd58ea985d5734 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Zelaleme9e81482020-07-10 15:18:46 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8test_setup() {
9 # Coverity scan only need to run on debug builds
10 echo "Building only in DEBUG mode."
11 set_hook_var "bin_mode" "debug"
12}
13
14pre_tf_build() {
15 wrapper="scan_build" setup_tf_build_wrapper
16}
17
18post_tf_archive() {
19 # Save scan-build reports to artefacts directory for offline analysis.
20 find $workspace -name scan-build-reports -exec cp -rf {} $archive \; &> /dev/null
21}