fix: install gcovr via apt on Ubuntu by default

This commit is contained in:
Amin Yahyaabadi 2025-07-03 04:44:58 -07:00
parent 056bb3b1d9
commit 751b635450
5 changed files with 9 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,16 @@
import { addEnv } from "envosman"
import semverMajor from "semver/functions/major"
import semverValid from "semver/functions/valid"
import { hasApt, installAptPack } from "setup-apt"
import { rcOptions } from "../options.js"
import { setupPipPack } from "../utils/setup/setupPipPack.js"
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export function setupGcovr(version: string | undefined, _setupDir: string, _arch: string) {
if (hasApt() && (version === undefined || version === "")) {
// use apt on Ubuntu/Debian if version is not specified
return installAptPack([{ name: "gcovr", version }])
}
return setupPipPack("gcovr", version)
}