Skip printing size unless cloudRunnerIntegrationTests is true

pull/387/head
Frostebite 2022-04-20 18:18:46 +01:00
parent 86412dd25d
commit 7fbfc6780d
3 changed files with 9 additions and 5 deletions

2
dist/index.js vendored
View File

@ -2804,8 +2804,10 @@ class RemoteClient {
} }
static sizeOfFolder(message, folder) { static sizeOfFolder(message, folder) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
if (cloud_runner_1.default.buildParameters.cloudRunnerIntegrationTests) {
cloud_runner_logger_1.default.log(`Size of ${message}`); cloud_runner_logger_1.default.log(`Size of ${message}`);
yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sh ${folder}`); yield cloud_runner_system_1.CloudRunnerSystem.Run(`du -sh ${folder}`);
}
}); });
} }
static cloneRepoWithoutLFSFiles() { static cloneRepoWithoutLFSFiles() {

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -45,9 +45,11 @@ export class RemoteClient {
} }
private static async sizeOfFolder(message: string, folder: string) { private static async sizeOfFolder(message: string, folder: string) {
if (CloudRunner.buildParameters.cloudRunnerIntegrationTests) {
CloudRunnerLogger.log(`Size of ${message}`); CloudRunnerLogger.log(`Size of ${message}`);
await CloudRunnerSystem.Run(`du -sh ${folder}`); await CloudRunnerSystem.Run(`du -sh ${folder}`);
} }
}
private static async cloneRepoWithoutLFSFiles() { private static async cloneRepoWithoutLFSFiles() {
try { try {