1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00
Original: 1abdc2efc0
This commit is contained in:
Ryan Dahl 2019-02-09 15:41:05 -05:00 committed by GitHub
parent a6e164441c
commit fa3f8cf67b
5 changed files with 19 additions and 10 deletions

View file

@ -1,5 +1,5 @@
variables:
DENO_VERSION: 'v0.2.10'
DENO_VERSION: 'v0.2.11'
jobs:
@ -9,8 +9,8 @@ jobs:
steps:
- script: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION)
- script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/'
- script: deno test.ts --allow-run --allow-net --allow-write
- script: deno format.ts --allow-run --allow-write --check
- script: deno test.ts --allow-run --allow-net --allow-write --allow-read
- script: deno format.ts --allow-run --allow-write --allow-read --check
- job: 'Mac'
pool:
@ -18,8 +18,8 @@ jobs:
steps:
- script: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION)
- script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/'
- script: deno test.ts --allow-run --allow-net --allow-write
- script: deno format.ts --allow-run --allow-write --check
- script: deno test.ts --allow-run --allow-net --allow-write --allow-read
- script: deno format.ts --allow-run --allow-write --allow-read --check
- job: 'Windows'
pool:
@ -27,5 +27,5 @@ jobs:
steps:
- 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: deno.exe test.ts --allow-run --allow-net --allow-write
- bash: deno.exe format.ts --allow-run --allow-write --check
- bash: deno.exe test.ts --allow-run --allow-net --allow-write --allow-read
- bash: deno.exe format.ts --allow-run --allow-write --allow-read --check

View file

@ -1,4 +1,4 @@
#!/usr/bin/env deno --allow-run --allow-write
#!/usr/bin/env deno --allow-run --allow-write --allow-read
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import { exit, args } from "deno";
import { parse } from "./flags/mod.ts";
@ -9,6 +9,7 @@ async function main(opts) {
`deno${executableSuffix}`,
"--allow-write",
"--allow-run",
"--allow-read",
"prettier/main.ts",
"--ignore",
"testdata",

View file

@ -8,7 +8,14 @@ import { TextProtoReader } from "../textproto/mod.ts";
let fileServer;
async function startFileServer() {
fileServer = run({
args: ["deno", "--allow-net", "http/file_server.ts", ".", "--cors"],
args: [
"deno",
"--allow-read",
"--allow-net",
"http/file_server.ts",
".",
"--cors"
],
stdout: "piped"
});
// Once fileServer is ready it will write to its stdout.

View file

@ -18,6 +18,7 @@ const cmd = [
`deno${executableSuffix}`,
"--allow-run",
"--allow-write",
"--allow-read",
"prettier/main.ts"
];
const testdata = "prettier/testdata";

View file

@ -1,4 +1,4 @@
#!/usr/bin/env deno --allow-run --allow-net --allow-write
#!/usr/bin/env deno -A
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import "colors/test.ts";
import "datetime/test.ts";