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 { getVersion } from "../../versions/versions"
|
||||||
import which from "which"
|
import which from "which"
|
||||||
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
|
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
|
||||||
|
import { macosVersion } from "../../utils/env/macos_version"
|
||||||
|
|
||||||
jest.setTimeout(300000)
|
jest.setTimeout(300000)
|
||||||
describe("setup-doxygen", () => {
|
describe("setup-doxygen", () => {
|
||||||
|
if (process.platform === "darwin" && macosVersion()[0] <= 11) {
|
||||||
|
test.skip("Skipping doxygen test on macOS 11 or earlier", () => {})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
let directory: string
|
let directory: string
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
directory = await setupTmpDir("doxygen")
|
directory = await setupTmpDir("doxygen")
|
||||||
|
|
|
@ -75,12 +75,13 @@ export async function setupDoxygen(version: string, setupDir: string, arch: stri
|
||||||
return installationInfo
|
return installationInfo
|
||||||
}
|
}
|
||||||
case "darwin": {
|
case "darwin": {
|
||||||
let installationInfo: InstallationInfo
|
// let installationInfo: InstallationInfo
|
||||||
try {
|
// try {
|
||||||
installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
|
// installationInfo = await setupBin("doxygen", version, getDoxygenPackageInfo, setupDir, arch)
|
||||||
} catch {
|
// } catch {
|
||||||
installationInfo = await setupBrewPack("doxygen", undefined)
|
const installationInfo = await setupBrewPack("doxygen", undefined)
|
||||||
}
|
// }
|
||||||
|
|
||||||
// only install graphviz if the macOS version is greater than 11
|
// only install graphviz if the macOS version is greater than 11
|
||||||
if (macosVersion()[0] > 11) {
|
if (macosVersion()[0] > 11) {
|
||||||
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
|
await setupGraphviz(getVersion("graphviz", undefined), "", arch)
|
||||||
|
|
Loading…
Reference in New Issue