diff options
author | Luca Casonato <hello@lcas.dev> | 2021-06-14 13:48:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 13:48:57 +0200 |
commit | d837445e44c9ed5c29901813d73818f84e97b294 (patch) | |
tree | da40539191c48bee852b7b500f070558db00307e /tools/wpt/utils.ts | |
parent | a6f1edd9533ae52f6d7c4841c395a34021dbdb71 (diff) |
build: add wpt epoch/daily run (#10937)
This adds a daily scheduled CI pipeline that runs WPT tests against
the most recent epochs/daily every night. Results are uploaded to
wpt.fyi.
WPTs are run on all supported platforms, on both stable and canary.
Diffstat (limited to 'tools/wpt/utils.ts')
-rw-r--r-- | tools/wpt/utils.ts | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/wpt/utils.ts b/tools/wpt/utils.ts index 3b1eb9965..0eb9a89e7 100644 --- a/tools/wpt/utils.ts +++ b/tools/wpt/utils.ts @@ -12,13 +12,19 @@ export const { rebuild, ["--"]: rest, ["auto-config"]: autoConfig, + binary, } = parse(Deno.args, { "--": true, boolean: ["quiet", "release", "no-interactive"], - string: ["json", "wptreport"], + string: ["json", "wptreport", "binary"], }); -/// PAGE ROOT +export function denoBinary() { + if (binary) { + return binary; + } + return join(ROOT_PATH, `./target/${release ? "release" : "debug"}/deno`); +} /// WPT TEST MANIFEST @@ -164,11 +170,7 @@ export async function generateRunInfo(): Promise<unknown> { const revision = (new TextDecoder().decode(await proc.output())).trim(); proc.close(); const proc2 = Deno.run({ - cmd: [ - join(ROOT_PATH, `./target/${release ? "release" : "debug"}/deno`), - "eval", - "console.log(JSON.stringify(Deno.version))", - ], + cmd: [denoBinary(), "eval", "console.log(JSON.stringify(Deno.version))"], cwd: join(ROOT_PATH, "test_util", "wpt"), stdout: "piped", }); |