skip cleanup in CI to save time

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2021-06-24 13:45:14 +02:00
parent b661fa4a05
commit ba61355e53
+8 -2
View File
@@ -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);