-
Notifications
You must be signed in to change notification settings - Fork 0
/
generate-reports.sh
executable file
·38 lines (30 loc) · 1022 Bytes
/
generate-reports.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
#
# Generate all reports that reside in ./generated-reports.
#
# This report contains several sub reports, for examlpe:
# test-coverage, test-profiling and benchmarks.
#
# In order to prevent unnecessary rebuilts due to a tainted
# workspace folder, all sub-reports are rendered to a
# temporary directory, before being copied back into the
# source dircetory.
set -xe
HERE=$(realpath $(dirname "$0"))
TARGET=$(mktemp -d)
${HERE}/generate-haddock-report.sh ${TARGET}
${HERE}/generate-module-graph.sh ${TARGET}
${HERE}/generate-test-coverage-report.sh ${TARGET}
${HERE}/generate-test-profiling-report.sh ${TARGET}
${HERE}/generate-benchmark-report.sh ${TARGET}
${HERE}/generate-pool-memleak-test-report.sh ${TARGET}
# copy all reports to the workspace folder
rm -rf ${HERE}/generated-reports
mkdir -p ${HERE}/generated-reports
cp --no-preserve=mode \
--no-preserve=ownership \
--no-preserve=timestamps \
--recursive \
--dereference \
${TARGET}/* \
${HERE}/generated-reports/