skip cleanup in CI to save time
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -72,8 +72,14 @@ export async function run() {
|
||||
print('Testing the backend startup');
|
||||
await testBackendStart(appDir, isPostgres);
|
||||
|
||||
print('All tests successful, removing test dir');
|
||||
await fs.remove(rootDir);
|
||||
if (process.env.CI) {
|
||||
// Cleanup actually takes significant time, so skip it in CI since the
|
||||
// runner will be destroyed anyway
|
||||
print('All tests successful');
|
||||
} else {
|
||||
print('All tests successful, removing test dir');
|
||||
await fs.remove(rootDir);
|
||||
}
|
||||
|
||||
// Just in case some child process was left hanging
|
||||
process.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user