Skip to content

Commit 559ec83

Browse files
CI: Fix build-dev-dashboard.sh script for Linux toolchain
1 parent 3377653 commit 559ec83

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

CI/build-dev-dashboard.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
#!/usr/bin/env bash
22

3+
set -euo pipefail
4+
5+
show_test_executable_path() {
6+
local base_path=".build/debug/WasmKitPackageTests.xctest"
7+
if [ -f "$base_path" ]; then
8+
echo "$base_path"
9+
else
10+
echo "$base_path/Contents/MacOS/WasmKitPackageTests"
11+
fi
12+
}
13+
314
build_coverage_html() {
4-
llvm-cov show --format=html .build/debug/WasmKitPackageTests.xctest/Contents/MacOS/WasmKitPackageTests --instr-profile .build/debug/codecov/default.profdata -o "$1" --sources $(find Sources/ -type f)
15+
llvm-cov show --format=html "$(show_test_executable_path)" --instr-profile .build/debug/codecov/default.profdata -o "$1" --sources $(find Sources -type f)
516
}
617

718
mkdir -p ./.build/html
819
build_coverage_html ./.build/html/coverage
20+
21+
echo "Coverage report has been generated in ./.build/html/coverage"

0 commit comments

Comments
 (0)