mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
parent
a6e164441c
commit
fa3f8cf67b
5 changed files with 19 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -18,6 +18,7 @@ const cmd = [
|
|||
`deno${executableSuffix}`,
|
||||
"--allow-run",
|
||||
"--allow-write",
|
||||
"--allow-read",
|
||||
"prettier/main.ts"
|
||||
];
|
||||
const testdata = "prettier/testdata";
|
||||
|
|
2
test.ts
2
test.ts
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue