Skip to content

Commit

Permalink
bump CI to v0.4.0 (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored and ry committed May 4, 2019
1 parent aa94463 commit 2ad643d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
14 changes: 7 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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
2 changes: 1 addition & 1 deletion examples/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions http/file_server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function startFileServer(): Promise<void> {
fileServer = run({
args: [
"deno",
"run",
"--allow-read",
"--allow-net",
"http/file_server.ts",
Expand Down
2 changes: 1 addition & 1 deletion http/racing_server_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions prettier/main_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ async function run(

const cmd = [
execPath,
"run",
"--allow-run",
"--allow-write",
"--allow-read",
Expand Down

0 comments on commit 2ad643d

Please sign in to comment.