blob: 458c8b03ce24937f63ba9bcf500ca1aad66c3afc [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8set -e
9
10# Generate test report
11if [ "$CI_ROOT" ]; then
12 # Gather Coverity scan summary if it was performed as part of this job
13 if [ "$(find -maxdepth 1 -name '*coverity*.test' -type f | wc -l)" != 0 ]; then
14 if ! "$CI_ROOT/script/coverity_summary.py" "$BUILD_URL" > coverity.data; then
15 rm -f coverity.data
16 fi
17 fi
18
19 "$CI_ROOT/script/gen_test_report.py" \
20 --job "${worker_job:-tf-worker}" \
21 --build-job "${lava_job:-tf-build-for-lava}" \
22 --meta-data clone.data \
23 --meta-data override.data \
24 --meta-data inject.data \
25 --meta-data html:coverity.data \
26 || true
Zelalem917b43e2020-08-04 11:39:55 -050027 source $CI_ROOT/script/gen_merge_report.sh "${WORKSPACE}/report.json" \
28 "${WORKSPACE}/report.html"
Fathi Boudra422bf772019-12-02 11:10:16 +020029fi