mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 16:19:12 -05:00
parent
a6e164441c
commit
fa3f8cf67b
5 changed files with 19 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
||||||
variables:
|
variables:
|
||||||
DENO_VERSION: 'v0.2.10'
|
DENO_VERSION: 'v0.2.11'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- script: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION)
|
- script: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION)
|
||||||
- script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/'
|
- script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/'
|
||||||
- script: deno test.ts --allow-run --allow-net --allow-write
|
- script: deno test.ts --allow-run --allow-net --allow-write --allow-read
|
||||||
- script: deno format.ts --allow-run --allow-write --check
|
- script: deno format.ts --allow-run --allow-write --allow-read --check
|
||||||
|
|
||||||
- job: 'Mac'
|
- job: 'Mac'
|
||||||
pool:
|
pool:
|
||||||
|
@ -18,8 +18,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- script: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION)
|
- script: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION)
|
||||||
- script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/'
|
- script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/'
|
||||||
- script: deno test.ts --allow-run --allow-net --allow-write
|
- script: deno test.ts --allow-run --allow-net --allow-write --allow-read
|
||||||
- script: deno format.ts --allow-run --allow-write --check
|
- script: deno format.ts --allow-run --allow-write --allow-read --check
|
||||||
|
|
||||||
- job: 'Windows'
|
- job: 'Windows'
|
||||||
pool:
|
pool:
|
||||||
|
@ -27,5 +27,5 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- powershell: iwr https://deno.land/x/install/install.ps1 -out install.ps1; .\install.ps1 $(DENO_VERSION)
|
- 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: echo "##vso[task.prependpath]C:\Users\VssAdministrator\.deno\\bin"
|
||||||
- bash: deno.exe test.ts --allow-run --allow-net --allow-write
|
- bash: deno.exe test.ts --allow-run --allow-net --allow-write --allow-read
|
||||||
- bash: deno.exe format.ts --allow-run --allow-write --check
|
- 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.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
import { exit, args } from "deno";
|
import { exit, args } from "deno";
|
||||||
import { parse } from "./flags/mod.ts";
|
import { parse } from "./flags/mod.ts";
|
||||||
|
@ -9,6 +9,7 @@ async function main(opts) {
|
||||||
`deno${executableSuffix}`,
|
`deno${executableSuffix}`,
|
||||||
"--allow-write",
|
"--allow-write",
|
||||||
"--allow-run",
|
"--allow-run",
|
||||||
|
"--allow-read",
|
||||||
"prettier/main.ts",
|
"prettier/main.ts",
|
||||||
"--ignore",
|
"--ignore",
|
||||||
"testdata",
|
"testdata",
|
||||||
|
|
|
@ -8,7 +8,14 @@ import { TextProtoReader } from "../textproto/mod.ts";
|
||||||
let fileServer;
|
let fileServer;
|
||||||
async function startFileServer() {
|
async function startFileServer() {
|
||||||
fileServer = run({
|
fileServer = run({
|
||||||
args: ["deno", "--allow-net", "http/file_server.ts", ".", "--cors"],
|
args: [
|
||||||
|
"deno",
|
||||||
|
"--allow-read",
|
||||||
|
"--allow-net",
|
||||||
|
"http/file_server.ts",
|
||||||
|
".",
|
||||||
|
"--cors"
|
||||||
|
],
|
||||||
stdout: "piped"
|
stdout: "piped"
|
||||||
});
|
});
|
||||||
// Once fileServer is ready it will write to its stdout.
|
// Once fileServer is ready it will write to its stdout.
|
||||||
|
|
|
@ -18,6 +18,7 @@ const cmd = [
|
||||||
`deno${executableSuffix}`,
|
`deno${executableSuffix}`,
|
||||||
"--allow-run",
|
"--allow-run",
|
||||||
"--allow-write",
|
"--allow-write",
|
||||||
|
"--allow-read",
|
||||||
"prettier/main.ts"
|
"prettier/main.ts"
|
||||||
];
|
];
|
||||||
const testdata = "prettier/testdata";
|
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.
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
import "colors/test.ts";
|
import "colors/test.ts";
|
||||||
import "datetime/test.ts";
|
import "datetime/test.ts";
|
||||||
|
|
Loading…
Reference in a new issue