test: cross platform

test: add osx and windows to test platforms in travis
This commit is contained in:
M. George Hansen 2020-06-10 17:11:10 -07:00
parent 701f85baef
commit db142fdff4
Signed by: mgeorgehansen
SSH key fingerprint: SHA256:JlIGiQLPyQ2RHTH3a2oVlb20Xkh9Glr8DUF4YTXHJxM
4 changed files with 65 additions and 11 deletions

View file

@ -5,6 +5,7 @@
import { ChildProcess, spawn } from "child_process";
import { promises as fs } from "fs";
import * as os from "os";
import * as path from "path";
/**
@ -165,3 +166,5 @@ export const runCommand = (
process,
};
};
export const npmCmd = os.platform() === "win32" ? "npm.cmd" : "npm";