diff options
Diffstat (limited to '.ci')
-rw-r--r-- | .ci/check_source_file_changes.ts | 32 | ||||
-rw-r--r-- | .ci/template.common.yml | 8 | ||||
-rw-r--r-- | .ci/template.linux.yml | 5 | ||||
-rw-r--r-- | .ci/template.mac.yml | 8 | ||||
-rw-r--r-- | .ci/template.unix.yml | 3 | ||||
-rw-r--r-- | .ci/template.windows.yml | 8 |
6 files changed, 0 insertions, 64 deletions
diff --git a/.ci/check_source_file_changes.ts b/.ci/check_source_file_changes.ts deleted file mode 100644 index 6aac5d645..000000000 --- a/.ci/check_source_file_changes.ts +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { xrun } from "../prettier/util.ts"; -import { red, green } from "../fmt/colors.ts"; - -/** - * Checks whether any source file is changed since the given start time. - * If some files are changed, this function exits with 1. - */ -async function main(startTime: number): Promise<void> { - console.log("test checkSourceFileChanges ..."); - const changed = new TextDecoder() - .decode(await xrun({ args: ["git", "ls-files"], stdout: "piped" }).output()) - .trim() - .split("\n") - .filter(file => { - const stat = Deno.lstatSync(file); - if (stat != null) { - return (stat as any).modified * 1000 > startTime; - } - }); - if (changed.length > 0) { - console.log(red("FAILED")); - console.log( - `Error: Some source files are modified during test: ${changed.join(", ")}` - ); - Deno.exit(1); - } else { - console.log(green("ok")); - } -} - -main(parseInt(Deno.args[1])); diff --git a/.ci/template.common.yml b/.ci/template.common.yml deleted file mode 100644 index 456ecc4bb..000000000 --- a/.ci/template.common.yml +++ /dev/null @@ -1,8 +0,0 @@ -parameters: - exe_suffix: "" - -steps: - - bash: deno${{ parameters.exe_suffix }} run --allow-run --allow-write --allow-read --allow-env ./format.ts --check - - bash: export START_TIME=$(date +%s) - - bash: deno${{ parameters.exe_suffix }} run --allow-run --allow-net --allow-write --allow-read --allow-env --config=tsconfig.test.json ./testing/runner.ts --exclude node_modules,**/testdata - - bash: deno${{ parameters.exe_suffix }} run --allow-run --allow-read .ci/check_source_file_changes.ts $START_TIME diff --git a/.ci/template.linux.yml b/.ci/template.linux.yml deleted file mode 100644 index 7e87e21a3..000000000 --- a/.ci/template.linux.yml +++ /dev/null @@ -1,5 +0,0 @@ -steps: - - bash: npm install eslint@$(ESLINT_VERSION) typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin@$(TS_ESLINT_VERSION) @typescript-eslint/parser@$(TS_ESLINT_VERSION) eslint-config-prettier - - template: ./template.unix.yml - - bash: npx eslint "**/*.ts" --max-warnings=0 - - template: ./template.common.yml diff --git a/.ci/template.mac.yml b/.ci/template.mac.yml deleted file mode 100644 index f93f5d2a0..000000000 --- a/.ci/template.mac.yml +++ /dev/null @@ -1,8 +0,0 @@ -steps: - - task: NodeTool@0 - inputs: - versionSpec: '10.x' - - bash: npm install eslint@$(ESLINT_VERSION) typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin@$(TS_ESLINT_VERSION) @typescript-eslint/parser@$(TS_ESLINT_VERSION) eslint-config-prettier - - template: ./template.unix.yml - - bash: npx eslint "**/*.ts" --max-warnings=0 - - template: ./template.common.yml diff --git a/.ci/template.unix.yml b/.ci/template.unix.yml deleted file mode 100644 index aea4e509d..000000000 --- a/.ci/template.unix.yml +++ /dev/null @@ -1,3 +0,0 @@ -steps: - - bash: curl -L https://deno.land/x/install/install.sh | sh -s $(DENO_VERSION) - - bash: echo '##vso[task.prependpath]$(HOME)/.deno/bin/' diff --git a/.ci/template.windows.yml b/.ci/template.windows.yml deleted file mode 100644 index 3b23abe92..000000000 --- a/.ci/template.windows.yml +++ /dev/null @@ -1,8 +0,0 @@ -steps: - - bash: npm install eslint@$(ESLINT_VERSION) typescript@$(TS_VERSION) @typescript-eslint/eslint-plugin@$(TS_ESLINT_VERSION) @typescript-eslint/parser@$(TS_ESLINT_VERSION) eslint-config-prettier - - 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 - - template: ./template.common.yml - parameters: - exe_suffix: ".exe" |