mirror of https://github.com/aminya/setup-cpp
test: skip doxygen test on macos 11 + use brew
This commit is contained in:
parent
dbfc8a80e6
commit
ea2732fbf8
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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -4,9 +4,15 @@ import { InstallationInfo } from "../../utils/setup/setupBin"
|
|||
import { getVersion } from "../../versions/versions"
|
||||
import which from "which"
|
||||
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
|
||||
import { macosVersion } from "../../utils/env/macos_version"
|
||||
|
||||
jest.setTimeout(300000)
|
||||
describe("setup-doxygen", () => {
|
||||
if (process.platform === "darwin" && macosVersion()[0] <= 11) {
|
||||
test.skip("Skipping doxygen test on macOS 11 or earlier", () => {})
|
||||
return
|
||||
}
|
||||
|
||||
let directory: string
|
||||
beforeAll(async () => {
|
||||
directory = await setupTmpDir("doxygen")
|
||||
|
|
|
@ -75,12 +75,13 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
|
|||
return installationInfo
|
||||
}
|
||||
case "darwin": {
|
||||
let installationInfo: InstallationInfo
|
||||
try {
|
||||
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
|
||||
} catch {
|
||||
installationInfo = await setupBrewPack("doxygen", undefined)
|
||||
}
|
||||
// let installationInfo: InstallationInfo
|
||||
// try {
|
||||
// installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
|
||||
// } catch {
|
||||
const installationInfo = await setupBrewPack("doxygen", undefined)
|
||||
// }
|
||||
|
||||
// only install graphviz if the macOS version is greater than 11
|
||||
if (macosVersion()[0] > 11) {
|
||||
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
|
||||
|
|
Loading…
Reference in New Issue