1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00

Bump CI to v0.3.2 (#245)

replace Deno.platform with Deno.build
This commit is contained in:
Yoshiya Hinosawa 2019-03-07 23:07:12 +09:00 committed by Ryan Dahl
parent 4cf39d4a14
commit c67751659c
6 changed files with 10 additions and 21 deletions

View file

@ -1,5 +1,5 @@
variables:
DENO_VERSION: "v0.3.1"
DENO_VERSION: "v0.3.2"
TS_VERSION: "3.2.1"
# TODO DRY up the jobs

View file

@ -2,10 +2,9 @@
// MIT License
// Copyright (c) 2018 Terkel Gjervig Nielsen
import * as deno from "deno";
import { GlobOptions } from "./glob.ts";
const isWin = deno.platform.os === "win";
const isWin = Deno.build.os === "win";
const SEP = isWin ? `\\\\+` : `\\/`;
const SEP_ESC = isWin ? `\\\\` : `/`;
const GLOBSTAR = `((?:[^/]*(?:/|$))*)`;

View file

@ -2,12 +2,11 @@
// MIT License
// Copyright (c) 2018 Terkel Gjervig Nielsen
import * as deno from "deno";
import { test } from "../testing/mod.ts";
import { assertEquals } from "../testing/asserts.ts";
import { globrex } from "./globrex.ts";
const isWin = deno.platform.os === "win";
const isWin = Deno.build.os === "win";
const t = { equal: assertEquals, is: assertEquals };
function match(glob, strUnix, strWin?, opts = {}) {

View file

@ -1,7 +1,7 @@
// Copyright the Browserify authors. MIT License.
// Ported from https://github.com/browserify/path-browserify/
const { platform } = Deno;
const { build } = Deno;
// Alphabet chars.
export const CHAR_UPPERCASE_A = 65; /* A */
@ -48,5 +48,5 @@ export const CHAR_EQUAL = 61; /* = */
export const CHAR_0 = 48; /* 0 */
export const CHAR_9 = 57; /* 9 */
export const isWindows = platform.os === "win";
export const isWindows = build.os === "win";
export const EOL = isWindows ? "\r\n" : "\n";

View file

@ -1,19 +1,10 @@
const {
cwd,
chdir,
makeTempDir,
mkdir,
open,
platform,
remove,
symlink
} = Deno;
const { cwd, chdir, makeTempDir, mkdir, open, build, remove, symlink } = Deno;
import { FileInfo } from "deno";
import { walk, walkSync, WalkOptions } from "./walk.ts";
import { test, TestFunction } from "../testing/mod.ts";
import { assert, assertEquals } from "../testing/asserts.ts";
const isWindows = platform.os === "win";
const isWindows = build.os === "win";
export async function testWalk(
setup: (string) => void | Promise<void>,

View file

@ -1,12 +1,12 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
const { platform, run } = Deno;
const { build, run } = Deno;
// Runs a command in cross-platform way
export function xrun(opts): Deno.Process {
return run({
...opts,
args: platform.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args
args: build.os === "win" ? ["cmd.exe", "/c", ...opts.args] : opts.args
});
}
export const executableSuffix = platform.os === "win" ? ".exe" : "";
export const executableSuffix = build.os === "win" ? ".exe" : "";