-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
executable file
·32 lines (23 loc) · 938 Bytes
/
build.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
#!/usr/bin/env bash
# Expects the following variables to be defined.
#
# BUILDLOG_ROOT - directory for downloading and producing output
# AUTOBUILD_ROOT - directory containing autobuild
set -ue
SCOREBOARD_ROOT=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
TITLE="OpenDDS Build Scoreboard"
echo "----- Starting mirror_scoreboard";
if ! [ -d "${BUILDLOG_ROOT}" ]
then
echo "BUILDLOG_ROOT (${BUILDLOG_ROOT}) does not exist"
exit 1
fi
# Build the main selection page
echo "----- Building Main Index page"
"${AUTOBUILD_ROOT}/scoreboard.pl" -v -i "${SCOREBOARD_ROOT}/index.xml" -d "${BUILDLOG_ROOT}"
# Update the DDS scoreboard
echo "----- Building ${TITLE}"
xml_file="${SCOREBOARD_ROOT}/dds.xml"
"${AUTOBUILD_ROOT}/scoreboard.pl" -v -t "${TITLE}" -f "${xml_file}" -d "${BUILDLOG_ROOT}" -o dds.html -c -k 10
echo "----- Building test matrix for ${TITLE}"
"${AUTOBUILD_ROOT}/matrix.py" "${BUILDLOG_ROOT}"