Add clone-test-repos-large script for cloning very large repositories (not part of push/pull_request trigger).

This commit is contained in:
David Anson 2020-05-08 12:27:41 -07:00
parent 2141566b47
commit ebdf0ddf28
2 changed files with 17 additions and 0 deletions

View file

@ -2,6 +2,7 @@
"use strict";
const { existsSync } = require("fs");
const { join } = require("path");
const { promisify } = require("util");
const globby = require("globby");
@ -91,3 +92,18 @@ tape("https://github.com/pi-hole/docs", (test) => {
const configPath = join(rootDir, ".markdownlint.json");
lintTestRepo(test, globPatterns, configPath);
});
// Optional repositories (very large)
const dotnetDocsDir = "./test-repos/dotnet-docs";
if (existsSync(dotnetDocsDir)) {
tape("https://github.com/dotnet/docs", (test) => {
const rootDir = dotnetDocsDir;
const globPatterns = [
join(rootDir, "**/*.md"),
"!" + join(rootDir, "samples/**/*.md")
];
const configPath = join(rootDir, ".markdownlint.json");
lintTestRepo(test, globPatterns, configPath);
});
}