From fa3f8cf67b2e97087f044c2ee430a0b32e338d0b Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 9 Feb 2019 15:41:05 -0500 Subject: [PATCH] Bump CI to v0.2.11 (denoland/deno_std#183) Original: https://github.com/denoland/deno_std/commit/1abdc2efc0fbe7a7b0978fed0c37acede58a9700 --- azure-pipelines.yml | 14 +++++++------- format.ts | 3 ++- http/file_server_test.ts | 9 ++++++++- prettier/main_test.ts | 1 + test.ts | 2 +- 5 files changed, 19 insertions(+), 10 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f14422ad47..0696c17e08 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 diff --git a/format.ts b/format.ts index a29a53d3fa..4de5cfa877 100755 --- a/format.ts +++ b/format.ts @@ -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", diff --git a/http/file_server_test.ts b/http/file_server_test.ts index 1b6613c15f..698857dce3 100644 --- a/http/file_server_test.ts +++ b/http/file_server_test.ts @@ -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. diff --git a/prettier/main_test.ts b/prettier/main_test.ts index 69ee126c85..d770d72320 100644 --- a/prettier/main_test.ts +++ b/prettier/main_test.ts @@ -18,6 +18,7 @@ const cmd = [ `deno${executableSuffix}`, "--allow-run", "--allow-write", + "--allow-read", "prettier/main.ts" ]; const testdata = "prettier/testdata"; diff --git a/test.ts b/test.ts index e4cf14be8d..a0f5d67e90 100755 --- a/test.ts +++ b/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";