...
1#!/usr/bin/env bash
2
3set -euo pipefail
4
5. {{shell2junit_path}}
6
7# Execute shellcheck using juLog so we produce an XML JUnit report.
8juLog \
9 -output="$TEST_TMPDIR" \
10 -class="$(basename {{file}})" \
11 -name="shellcheck" \
12 {{shellcheck_path}} --external-sources "{{file}}"
13
14# Move output to location where Bazel will collect it. Can't write directly
15# to XML_OUTPUT_FILE because juLog assumes directory.
16mv "$TEST_TMPDIR/junit_$(basename {{file}}).xml" "$XML_OUTPUT_FILE"
View as plain text