Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2019, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | pre_tf_build() { |
| 9 | echo "Configure coverity to compare with trustedfirmware.org for MISRA defects." |
| 10 | |
| 11 | append_hook_var "cov_options" " ${coverity_default_checkers[*]}" |
| 12 | append_hook_var "cov_options" \ |
| 13 | " --coding-standard-config $ci_root/coverity/MISRA_c2012_1_ARM_TF.config" |
| 14 | |
| 15 | # Branch description |
| 16 | set_hook_var "cov_checker" "misra" |
| 17 | |
| 18 | set_hook_var "cov_golden_url" \ |
| 19 | "${cov_golden_url-https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git}" |
| 20 | |
| 21 | set_hook_var "cov_golden_ref" "${cov_golden_ref-integration}" |
| 22 | |
| 23 | # Print comparison report |
| 24 | set_hook_var "cov_run_type" "branch-report-compare" |
| 25 | } |