mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: Added task to check if 'grcov' is installed
This commit is contained in:
parent
a5de816bce
commit
738761947a
@ -16,6 +16,22 @@ cd ../shared-lib
|
||||
RUST_LOG=info cargo test --no-default-features
|
||||
'''
|
||||
|
||||
[tasks.check_grcov]
|
||||
description = "Check if `grcov` is installled"
|
||||
script_runner = "@shell"
|
||||
script = '''
|
||||
if command -v z > /dev/null; then
|
||||
echo "Found 'grcov' executable."
|
||||
else
|
||||
echo "[!] Could not find 'grcov' executable."
|
||||
echo "[!] Please install 'grcov' by running 'cargo install grcov'."
|
||||
echo "[!] You may also need to install 'llvm-tools-preview' using 'rustup component add llvm-tools-preview'."
|
||||
echo "[!] If installed, check if 'grcov' is in PATH."
|
||||
echo "[!] Exiting..."
|
||||
exit -1
|
||||
fi
|
||||
'''
|
||||
|
||||
[tasks.clean_profraw_files]
|
||||
description = "Cleans profraw files that are created by `cargo test`"
|
||||
script_runner = "@duckscript"
|
||||
@ -181,6 +197,7 @@ run_task = { name = [
|
||||
[tasks.get_ci_test_coverage]
|
||||
description = "Get LCOV coverage reports for CI"
|
||||
run_task = { name = [
|
||||
"check_grcov",
|
||||
"run_rustlib_coverage_tests",
|
||||
"run_sharedlib_coverage_tests",
|
||||
"get_lcov_report",
|
||||
@ -190,6 +207,7 @@ run_task = { name = [
|
||||
[tasks.get_test_coverage]
|
||||
description = "Get human readable test coverage reports"
|
||||
run_task = { name = [
|
||||
"check_grcov",
|
||||
"run_rustlib_coverage_tests",
|
||||
"run_sharedlib_coverage_tests",
|
||||
"get_grcov_report",
|
||||
|
Loading…
Reference in New Issue
Block a user