Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Use travis-fold #453

Merged
merged 2 commits into from
Apr 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 44 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"oboe": "^2.1.3",
"source-map-support": "^0.4.0",
"tar": "^2.2.1",
"travis-fold": "^0.1.2",
"typescript": "next",
"yargs": "^8.0.2"
},
Expand All @@ -30,6 +31,7 @@
"@types/oboe": "^2.0.28",
"@types/source-map-support": "^0.4.0",
"@types/tar": "^1.0.27",
"@types/travis-fold": "^0.1.0",
"@types/yargs": "^8.0.1",
"tslint": "^5.8.0"
},
Expand Down
4 changes: 4 additions & 0 deletions src/check-parse-results.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import * as fold from "travis-fold";

import { Options } from "./lib/common";
import { fetchNpmInfo, NpmInfoVersion, NpmInfoVersions } from "./lib/npm-client";
import { AllPackages, AnyPackage, TypingsData } from "./lib/packages";
Expand All @@ -18,9 +20,11 @@ export default async function main(includeNpmChecks: boolean, options: Options,

checkPathMappings(allPackages);

if (fold.isTravis()) { console.log(fold.start("Duplicate packages")); }
const packages = allPackages.allPackages();
checkForDuplicates(packages, pkg => pkg.libraryName, "Library Name", log);
checkForDuplicates(packages, pkg => pkg.projectName, "Project Name", log);
if (fold.isTravis()) { console.log(fold.end("Duplicate packages")); }

const dependedOn = new Set<string>();
for (const pkg of packages) {
Expand Down
3 changes: 3 additions & 0 deletions src/tester/test-runner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { pathExists } from "fs-extra";
import * as fold from "travis-fold";
import * as yargs from "yargs";

import { Options } from "../lib/common";
Expand Down Expand Up @@ -86,6 +87,7 @@ async function runTests(
): Promise<void> {
const allFailures: Array<[string, string]> = [];

if (fold.isTravis()) { console.log(fold.start("tests")); }
await runWithListeningChildProcesses({
inputs: packages.map(p => ({ path: p.subDirectoryPath, onlyTestTsNext: !changed.has(p) })),
commandLineArgs: ["--listen"],
Expand All @@ -103,6 +105,7 @@ async function runTests(
}
},
});
if (fold.isTravis()) { console.log(fold.end("tests")); }

if (allFailures.length === 0) {
return;
Expand Down