diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-05-04 17:33:50 +0200 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-04 11:33:50 -0400 |
| commit | 02bd7e956ec691076f597085bdfcc82afa8292cd (patch) | |
| tree | a32ff4d7a642457d0734fa6b88f0a8b35f91eed7 | |
| parent | 2f14376f604fec4b7a4bded11c9f0578bad39a6b (diff) | |
bump CI to v0.4.0 (denoland/deno_std#378)
Original: https://github.com/denoland/deno_std/commit/2ad643d29690f6390c250f55e993727ae8e1ba54
| -rw-r--r-- | azure-pipelines.yml | 14 | ||||
| -rw-r--r-- | examples/test.ts | 2 | ||||
| -rwxr-xr-x | format.ts | 1 | ||||
| -rw-r--r-- | http/file_server_test.ts | 1 | ||||
| -rw-r--r-- | http/racing_server_test.ts | 2 | ||||
| -rw-r--r-- | prettier/main_test.ts | 1 |
6 files changed, 12 insertions, 9 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 59fada5d4..15a7ac872 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,5 +1,5 @@ variables: - DENO_VERSION: "v0.3.10" + DENO_VERSION: "v0.4.0" TS_VERSION: "3.4.5" # TODO DRY up the jobs @@ -13,8 +13,8 @@ jobs: - script: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION) - script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/' - script: npx eslint **/*.ts --max-warnings=0 - - script: deno --allow-run --allow-write --allow-read format.ts --check - - script: deno --allow-run --allow-net --allow-write --allow-read test.ts + - script: deno run --allow-run --allow-write --allow-read format.ts --check + - script: deno run --allow-run --allow-net --allow-write --allow-read test.ts - job: "Mac" pool: @@ -24,8 +24,8 @@ jobs: - script: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION) - script: echo '##vso[task.prependpath]$(HOME)/.deno/bin/' - script: eslint **/*.ts --max-warnings=0 - - script: deno --allow-run --allow-write --allow-read format.ts --check - - script: deno --allow-run --allow-net --allow-write --allow-read test.ts + - script: deno run --allow-run --allow-write --allow-read format.ts --check + - script: deno run --allow-run --allow-net --allow-write --allow-read test.ts - job: "Windows" pool: @@ -35,5 +35,5 @@ jobs: - 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 - - bash: deno.exe --allow-run --allow-write --allow-read format.ts --check - - bash: deno.exe --allow-run --allow-net --allow-write --allow-read test.ts + - bash: deno.exe run --allow-run --allow-write --allow-read format.ts --check + - bash: deno.exe run --allow-run --allow-net --allow-write --allow-read test.ts diff --git a/examples/test.ts b/examples/test.ts index 17d19a312..8158763be 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -15,7 +15,7 @@ test(function t2(): void { /** A more complicated test that runs a subprocess. */ test(async function catSmoke(): Promise<void> { const p = run({ - args: ["deno", "--allow-read", "examples/cat.ts", "README.md"], + args: ["deno", "run", "--allow-read", "examples/cat.ts", "README.md"], stdout: "piped" }); const s = await p.status(); @@ -7,6 +7,7 @@ import { xrun } from "./prettier/util.ts"; async function main(opts): Promise<void> { const args = [ execPath, + "run", "--allow-write", "--allow-read", "prettier/main.ts", diff --git a/http/file_server_test.ts b/http/file_server_test.ts index b976c0dc0..38071d3e4 100644 --- a/http/file_server_test.ts +++ b/http/file_server_test.ts @@ -11,6 +11,7 @@ async function startFileServer(): Promise<void> { fileServer = run({ args: [ "deno", + "run", "--allow-read", "--allow-net", "http/file_server.ts", diff --git a/http/racing_server_test.ts b/http/racing_server_test.ts index 0c1a5c65f..cdcdca1a7 100644 --- a/http/racing_server_test.ts +++ b/http/racing_server_test.ts @@ -8,7 +8,7 @@ import { TextProtoReader } from "../textproto/mod.ts"; let server; async function startServer(): Promise<void> { server = run({ - args: ["deno", "-A", "http/racing_server.ts"], + args: ["deno", "run", "-A", "http/racing_server.ts"], stdout: "piped" }); // Once fileServer is ready it will write to its stdout. diff --git a/prettier/main_test.ts b/prettier/main_test.ts index 0c8cca712..0c6653a3c 100644 --- a/prettier/main_test.ts +++ b/prettier/main_test.ts @@ -20,6 +20,7 @@ async function run( const cmd = [ execPath, + "run", "--allow-run", "--allow-write", "--allow-read", |
