mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
bump CI to v0.4.0 (#378)
This commit is contained in:
parent
aa94463902
commit
2ad643d296
6 changed files with 12 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
||||||
variables:
|
variables:
|
||||||
DENO_VERSION: "v0.3.10"
|
DENO_VERSION: "v0.4.0"
|
||||||
TS_VERSION: "3.4.5"
|
TS_VERSION: "3.4.5"
|
||||||
|
|
||||||
# TODO DRY up the jobs
|
# 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: 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: npx eslint **/*.ts --max-warnings=0
|
- script: npx eslint **/*.ts --max-warnings=0
|
||||||
- script: deno --allow-run --allow-write --allow-read format.ts --check
|
- script: deno run --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-net --allow-write --allow-read test.ts
|
||||||
|
|
||||||
- job: "Mac"
|
- job: "Mac"
|
||||||
pool:
|
pool:
|
||||||
|
@ -24,8 +24,8 @@ jobs:
|
||||||
- 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: eslint **/*.ts --max-warnings=0
|
- script: eslint **/*.ts --max-warnings=0
|
||||||
- script: deno --allow-run --allow-write --allow-read format.ts --check
|
- script: deno run --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-net --allow-write --allow-read test.ts
|
||||||
|
|
||||||
- job: "Windows"
|
- job: "Windows"
|
||||||
pool:
|
pool:
|
||||||
|
@ -35,5 +35,5 @@ jobs:
|
||||||
- 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: npx eslint **/*.ts --max-warnings=0
|
- bash: npx eslint **/*.ts --max-warnings=0
|
||||||
- bash: deno.exe --allow-run --allow-write --allow-read format.ts --check
|
- bash: deno.exe run --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-net --allow-write --allow-read test.ts
|
||||||
|
|
|
@ -15,7 +15,7 @@ test(function t2(): void {
|
||||||
/** A more complicated test that runs a subprocess. */
|
/** A more complicated test that runs a subprocess. */
|
||||||
test(async function catSmoke(): Promise<void> {
|
test(async function catSmoke(): Promise<void> {
|
||||||
const p = run({
|
const p = run({
|
||||||
args: ["deno", "--allow-read", "examples/cat.ts", "README.md"],
|
args: ["deno", "run", "--allow-read", "examples/cat.ts", "README.md"],
|
||||||
stdout: "piped"
|
stdout: "piped"
|
||||||
});
|
});
|
||||||
const s = await p.status();
|
const s = await p.status();
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { xrun } from "./prettier/util.ts";
|
||||||
async function main(opts): Promise<void> {
|
async function main(opts): Promise<void> {
|
||||||
const args = [
|
const args = [
|
||||||
execPath,
|
execPath,
|
||||||
|
"run",
|
||||||
"--allow-write",
|
"--allow-write",
|
||||||
"--allow-read",
|
"--allow-read",
|
||||||
"prettier/main.ts",
|
"prettier/main.ts",
|
||||||
|
|
|
@ -11,6 +11,7 @@ async function startFileServer(): Promise<void> {
|
||||||
fileServer = run({
|
fileServer = run({
|
||||||
args: [
|
args: [
|
||||||
"deno",
|
"deno",
|
||||||
|
"run",
|
||||||
"--allow-read",
|
"--allow-read",
|
||||||
"--allow-net",
|
"--allow-net",
|
||||||
"http/file_server.ts",
|
"http/file_server.ts",
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { TextProtoReader } from "../textproto/mod.ts";
|
||||||
let server;
|
let server;
|
||||||
async function startServer(): Promise<void> {
|
async function startServer(): Promise<void> {
|
||||||
server = run({
|
server = run({
|
||||||
args: ["deno", "-A", "http/racing_server.ts"],
|
args: ["deno", "run", "-A", "http/racing_server.ts"],
|
||||||
stdout: "piped"
|
stdout: "piped"
|
||||||
});
|
});
|
||||||
// Once fileServer is ready it will write to its stdout.
|
// Once fileServer is ready it will write to its stdout.
|
||||||
|
|
|
@ -20,6 +20,7 @@ async function run(
|
||||||
|
|
||||||
const cmd = [
|
const cmd = [
|
||||||
execPath,
|
execPath,
|
||||||
|
"run",
|
||||||
"--allow-run",
|
"--allow-run",
|
||||||
"--allow-write",
|
"--allow-write",
|
||||||
"--allow-read",
|
"--allow-read",
|
||||||
|
|
Loading…
Reference in a new issue