-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #294 from aminya/cmakelang [skip ci]
- Loading branch information
Showing
16 changed files
with
324 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ words: | |
- choco | ||
- clangd | ||
- cmake | ||
- cmakeformat | ||
- cobertura | ||
- copr | ||
- CPATH | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ubuntuVersion } from "../../utils/env/ubuntu_version.js" | ||
import { testBin } from "../../utils/tests/test-helpers.js" | ||
import { getVersion } from "../../versions/versions.js" | ||
import { setupCmakelang } from "../cmakelang.js" | ||
|
||
jest.setTimeout(300000) | ||
describe("setup-cmakelang", () => { | ||
it("should setup cmakelang", async () => { | ||
const installInfo = await setupCmakelang(getVersion("cmakelang", "true", await ubuntuVersion()), "", process.arch) | ||
await testBin("cmake-lint", ["--version"], installInfo.binDir) | ||
await testBin("cmake-format", ["--version"], installInfo.binDir) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { setupPipPack } from "../utils/setup/setupPipPack.js" | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
export function setupCmakelang(version: string | undefined, _setupDir: string, _arch: string) { | ||
return setupPipPack("cmakelang[YAML]", version) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// the installed @types/node package is version 12 so that backwards compatibility is maintained | ||
// node: prefix is removed by Babel, so define the types of those packages here so that TypeScript can find them | ||
|
||
declare module "node:fs" { | ||
import fs from "fs" | ||
export = fs | ||
} | ||
|
||
declare module "node:path" { | ||
import path from "path" | ||
export = path | ||
} | ||
|
||
declare module "node:child_process" { | ||
import child_process from "child_process" | ||
export = child_process | ||
} | ||
|
||
declare module "node:os" { | ||
import os from "os" | ||
export = os | ||
} | ||
|
||
declare module "node:util" { | ||
import util from "util" | ||
export = util | ||
} | ||
|
||
declare module "node:stream" { | ||
import stream from "stream" | ||
export = stream | ||
} | ||
|
||
declare module "node:zlib" { | ||
import zlib from "zlib" | ||
export = zlib | ||
} | ||
|
||
declare module "node:crypto" { | ||
import crypto from "crypto" | ||
export = crypto | ||
} | ||
declare module "node:http" { | ||
import http from "http" | ||
export = http | ||
} | ||
|
||
declare module "node:https" { | ||
import https from "https" | ||
export = https | ||
} | ||
|
||
declare module "node:events" { | ||
import events from "events" | ||
export = events | ||
} | ||
|
||
declare module "node:assert" { | ||
import assert from "assert" | ||
export = assert | ||
} | ||
|
||
declare module "node:constants" { | ||
import constants from "constants" | ||
export = constants | ||
} | ||
|
||
declare module "node:querystring" { | ||
import querystring from "querystring" | ||
export = querystring | ||
} | ||
|
||
declare module "node:url" { | ||
import url from "url" | ||
export = url | ||
} | ||
|
||
declare module "node:fs/promises" { | ||
import fsPromises from "fs/promises" | ||
export = fsPromises | ||
} | ||
|
||
declare module "node:path/posix" { | ||
import pathPosix from "path/posix" | ||
export = pathPosix | ||
} | ||
|
||
declare module "node:path/win32" { | ||
import pathWin32 from "path/win32" | ||
export = pathWin32 | ||
} |
Oops, something went wrong.