mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
chore: allow skipping tests in the release script
PI_RELEASE_SKIP_TESTS=1 skips ./test.sh when the suite already passed in release:local and the machine is too loaded for timing-sensitive tests.
This commit is contained in:
parent
e916310705
commit
bf8d9c659f
2 changed files with 11 additions and 3 deletions
|
|
@ -257,9 +257,15 @@ console.log("Building packages for tests...");
|
|||
run("npm run build:offline");
|
||||
console.log();
|
||||
|
||||
console.log("Running tests...");
|
||||
run("./test.sh");
|
||||
console.log();
|
||||
// PI_RELEASE_SKIP_TESTS=1 skips the test suite, e.g. when it already passed in `npm run release:local`
|
||||
// and an overloaded machine makes timing-sensitive tests fail. Checks and the install check still run.
|
||||
if (process.env.PI_RELEASE_SKIP_TESTS === "1") {
|
||||
console.log("Skipping tests (PI_RELEASE_SKIP_TESTS=1)\n");
|
||||
} else {
|
||||
console.log("Running tests...");
|
||||
run("./test.sh");
|
||||
console.log();
|
||||
}
|
||||
|
||||
console.log("Checking the packed coding-agent consumer install...");
|
||||
run("npm run check:package-install");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue