Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: bump to v0.15.0 #556

Merged
merged 18 commits into from
Aug 14, 2019
4 changes: 2 additions & 2 deletions .ci/template.common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ parameters:
exe_suffix: ""

steps:
- bash: deno${{ parameters.exe_suffix }} run --allow-run --allow-write --allow-read format.ts --check
- bash: deno${{ parameters.exe_suffix }} run --allow-run --allow-net --allow-write --allow-read --allow-env --config=tsconfig.test.json test.ts
- bash: deno${{ parameters.exe_suffix }} run --allow-run --allow-write --allow-read --allow-env ./format.ts --check
- bash: deno${{ parameters.exe_suffix }} run --allow-run --allow-net --allow-write --allow-read --allow-env --config=tsconfig.test.json ./test.ts
2 changes: 1 addition & 1 deletion .ci/template.linux.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- bash: npm install [email protected] typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier
- bash: npm install [email protected] typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin@1.13.0 @typescript-eslint/parser@1.13.0 eslint-config-prettier
- template: ./template.unix.yml
- bash: npx eslint **/*.ts --max-warnings=0
- template: ./template.common.yml
2 changes: 1 addition & 1 deletion .ci/template.mac.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
steps:
- bash: npm install -g functional-red-black-tree
- bash: npm -g install [email protected] typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier
- bash: npm -g install [email protected] typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin@1.13.0 @typescript-eslint/parser@1.13.0 eslint-config-prettier
- template: ./template.unix.yml
- bash: eslint **/*.ts --max-warnings=0
- template: ./template.common.yml
2 changes: 1 addition & 1 deletion .ci/template.windows.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- bash: npm install [email protected] typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier
- bash: npm install [email protected] typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin@1.13.0 @typescript-eslint/parser@1.13.0 eslint-config-prettier
- powershell: iwr https://deno.land/x/install/install.ps1 -out install.ps1; .\install.ps1 $(DENO_VERSION)
- bash: echo "##vso[task.prependpath]C:\Users\VssAdministrator\.deno\\bin"
- bash: npx eslint **/*.ts --max-warnings=0
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variables:
DENO_VERSION: "v0.12.0"
DENO_VERSION: "v0.15.0"
TS_VERSION: "3.4.5"

# TODO Try to get eslint to run under Deno, like prettier
Expand Down
2 changes: 1 addition & 1 deletion examples/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test(function t2(): void {
test(async function catSmoke(): Promise<void> {
const p = run({
args: [
Deno.execPath,
Deno.execPath(),
"run",
"--allow-read",
"examples/cat.ts",
Expand Down
6 changes: 4 additions & 2 deletions format.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env -S deno run --allow-run --allow-write --allow-read
#!/usr/bin/env -S deno run --allow-run --allow-write --allow-read --allow-env
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
const { exit, args, execPath } = Deno;
import { parse } from "./flags/mod.ts";
import { xrun } from "./prettier/util.ts";

async function main(opts): Promise<void> {
const args = [
execPath,
execPath(),
"run",
"--allow-write",
"--allow-read",
Expand All @@ -24,6 +24,8 @@ async function main(opts): Promise<void> {
args.push("--check");
}

args.push(".");

exit((await xrun({ args }).status()).code);
}

Expand Down
2 changes: 1 addition & 1 deletion http/file_server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let fileServer: Deno.Process;
async function startFileServer(): Promise<void> {
fileServer = run({
args: [
Deno.execPath,
Deno.execPath(),
"run",
"--allow-read",
"--allow-net",
Expand Down
2 changes: 1 addition & 1 deletion http/racing_server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TextProtoReader } from "../textproto/mod.ts";
let server: Deno.Process;
async function startServer(): Promise<void> {
server = run({
args: [Deno.execPath, "run", "-A", "http/racing_server.ts"],
args: [Deno.execPath(), "run", "-A", "http/racing_server.ts"],
stdout: "piped"
});
// Once racing server is ready it will write to its stdout.
Expand Down
2 changes: 1 addition & 1 deletion http/server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ test({
async fn(): Promise<void> {
// Runs a simple server as another process
const p = Deno.run({
args: [Deno.execPath, "http/testdata/simple_server.ts", "--allow-net"],
args: [Deno.execPath(), "http/testdata/simple_server.ts", "--allow-net"],
stdout: "piped"
});

Expand Down
2 changes: 1 addition & 1 deletion installer/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export async function install(

// ensure script that is being installed exists
const ps = run({
args: [Deno.execPath, "fetch", "--reload", moduleUrl],
args: [Deno.execPath(), "fetch", "--reload", moduleUrl],
stdout: "inherit",
stderr: "inherit"
});
Expand Down
2 changes: 1 addition & 1 deletion installer/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const isWindows = Deno.platform.os === "win";
async function startFileServer(): Promise<void> {
fileServer = run({
args: [
Deno.execPath,
Deno.execPath(),
"run",
"--allow-read",
"--allow-net",
Expand Down
6 changes: 3 additions & 3 deletions prettier/main_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function run(
}

const cmd = [
execPath,
execPath(),
"run",
"--allow-run",
"--allow-write",
Expand Down Expand Up @@ -254,13 +254,13 @@ test(async function testPrettierReadFromStdin(): Promise<void> {
): Promise<void> {
const inputCode = stdin;
const p1 = Deno.run({
args: [execPath, "./prettier/testdata/echox.ts", `${inputCode}`],
args: [execPath(), "./prettier/testdata/echox.ts", `${inputCode}`],
stdout: "piped"
});

const p2 = Deno.run({
args: [
execPath,
execPath(),
"run",
"./prettier/main.ts",
"--stdin",
Expand Down