mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
Remove travis, rely on pipelines (denoland/deno_std#68)
Original: 63d4f6d828
This commit is contained in:
parent
fc1bb41ec4
commit
0aea8cb086
3 changed files with 4 additions and 12 deletions
|
@ -1,8 +0,0 @@
|
||||||
language: python
|
|
||||||
|
|
||||||
install:
|
|
||||||
- curl -L https://deno.land/x/install/install.py | python - v0.2.5
|
|
||||||
- export PATH="$HOME/.deno/bin:$PATH"
|
|
||||||
|
|
||||||
script:
|
|
||||||
- deno test.ts --allow-run --allow-net --allow-write
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Deno Standard Modules
|
# Deno Standard Modules
|
||||||
|
|
||||||
[](https://travis-ci.com/denoland/deno_std)
|
[](https://dev.azure.com/denoland/deno_std/_build/latest?definitionId=2?branchName=master)
|
||||||
|
|
||||||
This repository contains collections of modules that create a standard library
|
This repository contains collections of modules that create a standard library
|
||||||
for Deno.
|
for Deno.
|
||||||
|
|
|
@ -22,12 +22,12 @@ function maybeCompleteTests() {
|
||||||
export function runTests(serverReadyPromise: Promise<any>) {
|
export function runTests(serverReadyPromise: Promise<any>) {
|
||||||
test(async function serveFile() {
|
test(async function serveFile() {
|
||||||
await serverReadyPromise;
|
await serverReadyPromise;
|
||||||
const res = await fetch("http://localhost:4500/.travis.yml");
|
const res = await fetch("http://localhost:4500/azure-pipelines.yml");
|
||||||
assert(res.headers.has("access-control-allow-origin"));
|
assert(res.headers.has("access-control-allow-origin"));
|
||||||
assert(res.headers.has("access-control-allow-headers"));
|
assert(res.headers.has("access-control-allow-headers"));
|
||||||
assertEqual(res.headers.get("content-type"), "text/yaml");
|
assertEqual(res.headers.get("content-type"), "text/yaml");
|
||||||
const downloadedFile = await res.text();
|
const downloadedFile = await res.text();
|
||||||
const localFile = new TextDecoder().decode(await readFile("./.travis.yml"));
|
const localFile = new TextDecoder().decode(await readFile("./azure-pipelines.yml"));
|
||||||
assertEqual(downloadedFile, localFile);
|
assertEqual(downloadedFile, localFile);
|
||||||
maybeCompleteTests();
|
maybeCompleteTests();
|
||||||
});
|
});
|
||||||
|
@ -38,7 +38,7 @@ export function runTests(serverReadyPromise: Promise<any>) {
|
||||||
assert(res.headers.has("access-control-allow-origin"));
|
assert(res.headers.has("access-control-allow-origin"));
|
||||||
assert(res.headers.has("access-control-allow-headers"));
|
assert(res.headers.has("access-control-allow-headers"));
|
||||||
const page = await res.text();
|
const page = await res.text();
|
||||||
assert(page.includes(".travis.yml"));
|
assert(page.includes("azure-pipelines.yml"));
|
||||||
maybeCompleteTests();
|
maybeCompleteTests();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue