blob: 6136b35e6bee3b3699f176d7d69f64f54d0409a8 [file] [log] [blame]
Zelaleme9e81482020-07-10 15:18:46 -05001#!/bin/bash
2#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
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}