@catladder/cli 0.0.0-main-e7ef37ac โ 0.0.0-main-8f79dd9f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/catenv/index.js +95 -34
- package/dist/bundles/cli/index.js +95 -34
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -39135,6 +39135,76 @@ exports.RUNNER_BUILD_RESOURCE_VARIABLES = {
|
|
|
39135
39135
|
|
|
39136
39136
|
/***/ }),
|
|
39137
39137
|
|
|
39138
|
+
/***/ 5669:
|
|
39139
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
39140
|
+
|
|
39141
|
+
"use strict";
|
|
39142
|
+
|
|
39143
|
+
|
|
39144
|
+
var __assign = this && this.__assign || function () {
|
|
39145
|
+
__assign = Object.assign || function (t) {
|
|
39146
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
39147
|
+
s = arguments[i];
|
|
39148
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
39149
|
+
}
|
|
39150
|
+
return t;
|
|
39151
|
+
};
|
|
39152
|
+
return __assign.apply(this, arguments);
|
|
39153
|
+
};
|
|
39154
|
+
var __read = this && this.__read || function (o, n) {
|
|
39155
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
39156
|
+
if (!m) return o;
|
|
39157
|
+
var i = m.call(o),
|
|
39158
|
+
r,
|
|
39159
|
+
ar = [],
|
|
39160
|
+
e;
|
|
39161
|
+
try {
|
|
39162
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
39163
|
+
} catch (error) {
|
|
39164
|
+
e = {
|
|
39165
|
+
error: error
|
|
39166
|
+
};
|
|
39167
|
+
} finally {
|
|
39168
|
+
try {
|
|
39169
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
39170
|
+
} finally {
|
|
39171
|
+
if (e) throw e.error;
|
|
39172
|
+
}
|
|
39173
|
+
}
|
|
39174
|
+
return ar;
|
|
39175
|
+
};
|
|
39176
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
39177
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
39178
|
+
if (ar || !(i in from)) {
|
|
39179
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
39180
|
+
ar[i] = from[i];
|
|
39181
|
+
}
|
|
39182
|
+
}
|
|
39183
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
39184
|
+
};
|
|
39185
|
+
exports.__esModule = true;
|
|
39186
|
+
exports.createArtifactsConfig = void 0;
|
|
39187
|
+
var path_1 = __nccwpck_require__(1017);
|
|
39188
|
+
var createArtifactsConfig = function (rootPath, artifactsReports, artifacts) {
|
|
39189
|
+
var _a, _b, _c, _d;
|
|
39190
|
+
return artifactsReports || artifacts ? {
|
|
39191
|
+
artifacts: __assign(__assign({
|
|
39192
|
+
paths: []
|
|
39193
|
+
}, artifacts), {
|
|
39194
|
+
reports: __assign(__assign({}, artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports), {
|
|
39195
|
+
junit: [artifactsReports === null || artifactsReports === void 0 ? void 0 : artifactsReports.junit, Array.isArray((_a = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _a === void 0 ? void 0 : _a.junit) && ((_b = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _b === void 0 ? void 0 : _b.junit), typeof ((_c = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _c === void 0 ? void 0 : _c.junit) === "string" && [(_d = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _d === void 0 ? void 0 : _d.junit]].filter(Array.isArray).reduce(function (acc, curr) {
|
|
39196
|
+
return __spreadArray(__spreadArray([], __read(acc), false), __read(curr.map(function (p) {
|
|
39197
|
+
return (0, path_1.join)(rootPath, p);
|
|
39198
|
+
})), false);
|
|
39199
|
+
}, [])
|
|
39200
|
+
})
|
|
39201
|
+
})
|
|
39202
|
+
} : undefined;
|
|
39203
|
+
};
|
|
39204
|
+
exports.createArtifactsConfig = createArtifactsConfig;
|
|
39205
|
+
|
|
39206
|
+
/***/ }),
|
|
39207
|
+
|
|
39138
39208
|
/***/ 8063:
|
|
39139
39209
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
39140
39210
|
|
|
@@ -39482,9 +39552,9 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
39482
39552
|
};
|
|
39483
39553
|
exports.__esModule = true;
|
|
39484
39554
|
exports.createCustomTestJobs = void 0;
|
|
39485
|
-
var path_1 = __nccwpck_require__(1017);
|
|
39486
39555
|
var utils_1 = __nccwpck_require__(7461);
|
|
39487
39556
|
var types_1 = __nccwpck_require__(1197);
|
|
39557
|
+
var createArtifactsConfig_1 = __nccwpck_require__(5669);
|
|
39488
39558
|
var RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
39489
39559
|
KUBERNETES_CPU_REQUEST: "0.5",
|
|
39490
39560
|
KUBERNETES_CPU_LIMIT: "2",
|
|
@@ -39492,7 +39562,7 @@ var RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
|
39492
39562
|
KUBERNETES_MEMORY_LIMIT: "4Gi"
|
|
39493
39563
|
};
|
|
39494
39564
|
var createCustomTestJobs = function (context) {
|
|
39495
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
39565
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
39496
39566
|
// don't run tests after release
|
|
39497
39567
|
if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
|
|
39498
39568
|
return [];
|
|
@@ -39518,35 +39588,22 @@ var createCustomTestJobs = function (context) {
|
|
|
39518
39588
|
cache: undefined,
|
|
39519
39589
|
script: __spreadArray([], __read((_f = (0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : []), false),
|
|
39520
39590
|
allow_failure: true
|
|
39521
|
-
}), createArtifactsConfig(context.componentConfig.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports)) : null;
|
|
39591
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts)) : null;
|
|
39522
39592
|
var lintJob = buildConfig.lint ? __assign(__assign(__assign({
|
|
39523
39593
|
name: "๐ฎ lint"
|
|
39524
39594
|
}, base), {
|
|
39525
|
-
image: (
|
|
39526
|
-
script: __spreadArray([], __read((
|
|
39527
|
-
}), createArtifactsConfig(context.componentConfig.dir, (
|
|
39595
|
+
image: (_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.jobImage) !== null && _k !== void 0 ? _k : buildConfig.jobImage,
|
|
39596
|
+
script: __spreadArray([], __read((_m = (0, utils_1.ensureArray)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : []), false)
|
|
39597
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts)) : null;
|
|
39528
39598
|
var testJob = buildConfig.test ? __assign(__assign(__assign({
|
|
39529
39599
|
name: "๐งช test"
|
|
39530
39600
|
}, base), {
|
|
39531
|
-
image: (
|
|
39532
|
-
script: __spreadArray([], __read((
|
|
39533
|
-
}), createArtifactsConfig(context.componentConfig.dir, (
|
|
39601
|
+
image: (_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.jobImage) !== null && _r !== void 0 ? _r : buildConfig.jobImage,
|
|
39602
|
+
script: __spreadArray([], __read((_t = (0, utils_1.ensureArray)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : []), false)
|
|
39603
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.artifactsReports, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifacts)) : null;
|
|
39534
39604
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
39535
39605
|
};
|
|
39536
39606
|
exports.createCustomTestJobs = createCustomTestJobs;
|
|
39537
|
-
var createArtifactsConfig = function (rootPath, artifactsReports) {
|
|
39538
|
-
var _a, _b;
|
|
39539
|
-
return artifactsReports ? {
|
|
39540
|
-
artifacts: {
|
|
39541
|
-
paths: [],
|
|
39542
|
-
reports: {
|
|
39543
|
-
junit: (_b = (_a = artifactsReports === null || artifactsReports === void 0 ? void 0 : artifactsReports.junit) === null || _a === void 0 ? void 0 : _a.map(function (p) {
|
|
39544
|
-
return (0, path_1.join)(rootPath, p);
|
|
39545
|
-
})) !== null && _b !== void 0 ? _b : []
|
|
39546
|
-
}
|
|
39547
|
-
}
|
|
39548
|
-
} : undefined;
|
|
39549
|
-
};
|
|
39550
39607
|
|
|
39551
39608
|
/***/ }),
|
|
39552
39609
|
|
|
@@ -40191,13 +40248,15 @@ var utils_1 = __nccwpck_require__(7461);
|
|
|
40191
40248
|
var cache_1 = __nccwpck_require__(4303);
|
|
40192
40249
|
var constants_1 = __nccwpck_require__(9284);
|
|
40193
40250
|
var yarn_1 = __nccwpck_require__(464);
|
|
40251
|
+
var createArtifactsConfig_1 = __nccwpck_require__(5669);
|
|
40194
40252
|
var createNodeTestJobs = function (context) {
|
|
40195
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
40253
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
40196
40254
|
// don't run tests after release
|
|
40197
40255
|
if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
|
|
40198
40256
|
return [];
|
|
40199
40257
|
}
|
|
40200
40258
|
var buildConfig = context.componentConfig.build;
|
|
40259
|
+
var defaultImage = (0, runner_1.getRunnerImage)("jobs-default");
|
|
40201
40260
|
var base = {
|
|
40202
40261
|
variables: __assign(__assign(__assign({
|
|
40203
40262
|
APP_PATH: context.componentConfig.dir
|
|
@@ -40207,27 +40266,29 @@ var createNodeTestJobs = function (context) {
|
|
|
40207
40266
|
envMode: "none"
|
|
40208
40267
|
};
|
|
40209
40268
|
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
40210
|
-
var auditJob = buildConfig.audit !== false ? __assign(__assign({
|
|
40269
|
+
var auditJob = buildConfig.audit !== false ? __assign(__assign(__assign({
|
|
40211
40270
|
name: "๐ก audit"
|
|
40212
40271
|
}, base), {
|
|
40272
|
+
image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : defaultImage,
|
|
40213
40273
|
cache: undefined,
|
|
40214
|
-
script: __spreadArray(["cd ".concat(context.componentConfig.dir)], __read((
|
|
40274
|
+
script: __spreadArray(["cd ".concat(context.componentConfig.dir)], __read((_f = (0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [((_g = context.packageManagerInfo) === null || _g === void 0 ? void 0 : _g.isClassic) ? "yarn audit" : "yarn npm audit --environment production" // yarn 2
|
|
40215
40275
|
]), false),
|
|
40216
40276
|
allow_failure: true
|
|
40217
|
-
}) : null;
|
|
40218
|
-
var lintJob = buildConfig.lint !== false ? __assign(__assign({
|
|
40277
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts)) : null;
|
|
40278
|
+
var lintJob = buildConfig.lint !== false ? __assign(__assign(__assign({
|
|
40219
40279
|
name: "๐ฎ lint"
|
|
40220
40280
|
}, base), {
|
|
40281
|
+
image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : defaultImage,
|
|
40221
40282
|
cache: (0, cache_1.getNodeCache)(context),
|
|
40222
|
-
script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((
|
|
40223
|
-
}) : null;
|
|
40224
|
-
var testJob = buildConfig.test !== false ? __assign(__assign({
|
|
40283
|
+
script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_o = (0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)) !== null && _o !== void 0 ? _o : ["yarn lint"]), false)
|
|
40284
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifactsReports, (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.artifacts)) : null;
|
|
40285
|
+
var testJob = buildConfig.test !== false ? __assign(__assign(__assign({
|
|
40225
40286
|
name: "๐งช test"
|
|
40226
40287
|
}, base), {
|
|
40227
|
-
image: (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
|
|
40288
|
+
image: (_s = (_r = buildConfig.test) === null || _r === void 0 ? void 0 : _r.jobImage) !== null && _s !== void 0 ? _s : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
|
|
40228
40289
|
cache: (0, cache_1.getNodeCache)(context),
|
|
40229
|
-
script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((
|
|
40230
|
-
}) : null;
|
|
40290
|
+
script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_u = (0, utils_1.ensureArray)((_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.command)) !== null && _u !== void 0 ? _u : ["yarn test"]), false)
|
|
40291
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts)) : null;
|
|
40231
40292
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
40232
40293
|
};
|
|
40233
40294
|
exports.createNodeTestJobs = createNodeTestJobs;
|
|
@@ -40722,7 +40783,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40722
40783
|
|
|
40723
40784
|
exports.__esModule = true;
|
|
40724
40785
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40725
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
40786
|
+
exports.PIPELINE_IMAGE_TAG = "main-8f79dd9f" || 0;
|
|
40726
40787
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40727
40788
|
|
|
40728
40789
|
/***/ }),
|
|
@@ -350203,6 +350203,76 @@ exports.RUNNER_BUILD_RESOURCE_VARIABLES = {
|
|
|
350203
350203
|
|
|
350204
350204
|
/***/ }),
|
|
350205
350205
|
|
|
350206
|
+
/***/ 5669:
|
|
350207
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
350208
|
+
|
|
350209
|
+
"use strict";
|
|
350210
|
+
|
|
350211
|
+
|
|
350212
|
+
var __assign = this && this.__assign || function () {
|
|
350213
|
+
__assign = Object.assign || function (t) {
|
|
350214
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
350215
|
+
s = arguments[i];
|
|
350216
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
350217
|
+
}
|
|
350218
|
+
return t;
|
|
350219
|
+
};
|
|
350220
|
+
return __assign.apply(this, arguments);
|
|
350221
|
+
};
|
|
350222
|
+
var __read = this && this.__read || function (o, n) {
|
|
350223
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
350224
|
+
if (!m) return o;
|
|
350225
|
+
var i = m.call(o),
|
|
350226
|
+
r,
|
|
350227
|
+
ar = [],
|
|
350228
|
+
e;
|
|
350229
|
+
try {
|
|
350230
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
350231
|
+
} catch (error) {
|
|
350232
|
+
e = {
|
|
350233
|
+
error: error
|
|
350234
|
+
};
|
|
350235
|
+
} finally {
|
|
350236
|
+
try {
|
|
350237
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
350238
|
+
} finally {
|
|
350239
|
+
if (e) throw e.error;
|
|
350240
|
+
}
|
|
350241
|
+
}
|
|
350242
|
+
return ar;
|
|
350243
|
+
};
|
|
350244
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
350245
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
350246
|
+
if (ar || !(i in from)) {
|
|
350247
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
350248
|
+
ar[i] = from[i];
|
|
350249
|
+
}
|
|
350250
|
+
}
|
|
350251
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
350252
|
+
};
|
|
350253
|
+
exports.__esModule = true;
|
|
350254
|
+
exports.createArtifactsConfig = void 0;
|
|
350255
|
+
var path_1 = __nccwpck_require__(71017);
|
|
350256
|
+
var createArtifactsConfig = function (rootPath, artifactsReports, artifacts) {
|
|
350257
|
+
var _a, _b, _c, _d;
|
|
350258
|
+
return artifactsReports || artifacts ? {
|
|
350259
|
+
artifacts: __assign(__assign({
|
|
350260
|
+
paths: []
|
|
350261
|
+
}, artifacts), {
|
|
350262
|
+
reports: __assign(__assign({}, artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports), {
|
|
350263
|
+
junit: [artifactsReports === null || artifactsReports === void 0 ? void 0 : artifactsReports.junit, Array.isArray((_a = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _a === void 0 ? void 0 : _a.junit) && ((_b = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _b === void 0 ? void 0 : _b.junit), typeof ((_c = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _c === void 0 ? void 0 : _c.junit) === "string" && [(_d = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _d === void 0 ? void 0 : _d.junit]].filter(Array.isArray).reduce(function (acc, curr) {
|
|
350264
|
+
return __spreadArray(__spreadArray([], __read(acc), false), __read(curr.map(function (p) {
|
|
350265
|
+
return (0, path_1.join)(rootPath, p);
|
|
350266
|
+
})), false);
|
|
350267
|
+
}, [])
|
|
350268
|
+
})
|
|
350269
|
+
})
|
|
350270
|
+
} : undefined;
|
|
350271
|
+
};
|
|
350272
|
+
exports.createArtifactsConfig = createArtifactsConfig;
|
|
350273
|
+
|
|
350274
|
+
/***/ }),
|
|
350275
|
+
|
|
350206
350276
|
/***/ 58063:
|
|
350207
350277
|
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
350208
350278
|
|
|
@@ -350550,9 +350620,9 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
|
350550
350620
|
};
|
|
350551
350621
|
exports.__esModule = true;
|
|
350552
350622
|
exports.createCustomTestJobs = void 0;
|
|
350553
|
-
var path_1 = __nccwpck_require__(71017);
|
|
350554
350623
|
var utils_1 = __nccwpck_require__(37461);
|
|
350555
350624
|
var types_1 = __nccwpck_require__(71197);
|
|
350625
|
+
var createArtifactsConfig_1 = __nccwpck_require__(5669);
|
|
350556
350626
|
var RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
350557
350627
|
KUBERNETES_CPU_REQUEST: "0.5",
|
|
350558
350628
|
KUBERNETES_CPU_LIMIT: "2",
|
|
@@ -350560,7 +350630,7 @@ var RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
|
350560
350630
|
KUBERNETES_MEMORY_LIMIT: "4Gi"
|
|
350561
350631
|
};
|
|
350562
350632
|
var createCustomTestJobs = function (context) {
|
|
350563
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
350633
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
350564
350634
|
// don't run tests after release
|
|
350565
350635
|
if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
|
|
350566
350636
|
return [];
|
|
@@ -350586,35 +350656,22 @@ var createCustomTestJobs = function (context) {
|
|
|
350586
350656
|
cache: undefined,
|
|
350587
350657
|
script: __spreadArray([], __read((_f = (0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : []), false),
|
|
350588
350658
|
allow_failure: true
|
|
350589
|
-
}), createArtifactsConfig(context.componentConfig.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports)) : null;
|
|
350659
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.artifactsReports, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifacts)) : null;
|
|
350590
350660
|
var lintJob = buildConfig.lint ? __assign(__assign(__assign({
|
|
350591
350661
|
name: "๐ฎ lint"
|
|
350592
350662
|
}, base), {
|
|
350593
|
-
image: (
|
|
350594
|
-
script: __spreadArray([], __read((
|
|
350595
|
-
}), createArtifactsConfig(context.componentConfig.dir, (
|
|
350663
|
+
image: (_k = (_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.jobImage) !== null && _k !== void 0 ? _k : buildConfig.jobImage,
|
|
350664
|
+
script: __spreadArray([], __read((_m = (0, utils_1.ensureArray)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : []), false)
|
|
350665
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.artifactsReports, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifacts)) : null;
|
|
350596
350666
|
var testJob = buildConfig.test ? __assign(__assign(__assign({
|
|
350597
350667
|
name: "๐งช test"
|
|
350598
350668
|
}, base), {
|
|
350599
|
-
image: (
|
|
350600
|
-
script: __spreadArray([], __read((
|
|
350601
|
-
}), createArtifactsConfig(context.componentConfig.dir, (
|
|
350669
|
+
image: (_r = (_q = buildConfig.test) === null || _q === void 0 ? void 0 : _q.jobImage) !== null && _r !== void 0 ? _r : buildConfig.jobImage,
|
|
350670
|
+
script: __spreadArray([], __read((_t = (0, utils_1.ensureArray)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : []), false)
|
|
350671
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.artifactsReports, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifacts)) : null;
|
|
350602
350672
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
350603
350673
|
};
|
|
350604
350674
|
exports.createCustomTestJobs = createCustomTestJobs;
|
|
350605
|
-
var createArtifactsConfig = function (rootPath, artifactsReports) {
|
|
350606
|
-
var _a, _b;
|
|
350607
|
-
return artifactsReports ? {
|
|
350608
|
-
artifacts: {
|
|
350609
|
-
paths: [],
|
|
350610
|
-
reports: {
|
|
350611
|
-
junit: (_b = (_a = artifactsReports === null || artifactsReports === void 0 ? void 0 : artifactsReports.junit) === null || _a === void 0 ? void 0 : _a.map(function (p) {
|
|
350612
|
-
return (0, path_1.join)(rootPath, p);
|
|
350613
|
-
})) !== null && _b !== void 0 ? _b : []
|
|
350614
|
-
}
|
|
350615
|
-
}
|
|
350616
|
-
} : undefined;
|
|
350617
|
-
};
|
|
350618
350675
|
|
|
350619
350676
|
/***/ }),
|
|
350620
350677
|
|
|
@@ -351259,13 +351316,15 @@ var utils_1 = __nccwpck_require__(37461);
|
|
|
351259
351316
|
var cache_1 = __nccwpck_require__(54303);
|
|
351260
351317
|
var constants_1 = __nccwpck_require__(69284);
|
|
351261
351318
|
var yarn_1 = __nccwpck_require__(10464);
|
|
351319
|
+
var createArtifactsConfig_1 = __nccwpck_require__(5669);
|
|
351262
351320
|
var createNodeTestJobs = function (context) {
|
|
351263
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
351321
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
351264
351322
|
// don't run tests after release
|
|
351265
351323
|
if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
|
|
351266
351324
|
return [];
|
|
351267
351325
|
}
|
|
351268
351326
|
var buildConfig = context.componentConfig.build;
|
|
351327
|
+
var defaultImage = (0, runner_1.getRunnerImage)("jobs-default");
|
|
351269
351328
|
var base = {
|
|
351270
351329
|
variables: __assign(__assign(__assign({
|
|
351271
351330
|
APP_PATH: context.componentConfig.dir
|
|
@@ -351275,27 +351334,29 @@ var createNodeTestJobs = function (context) {
|
|
|
351275
351334
|
envMode: "none"
|
|
351276
351335
|
};
|
|
351277
351336
|
var yarnInstall = (0, yarn_1.getYarnInstall)(context);
|
|
351278
|
-
var auditJob = buildConfig.audit !== false ? __assign(__assign({
|
|
351337
|
+
var auditJob = buildConfig.audit !== false ? __assign(__assign(__assign({
|
|
351279
351338
|
name: "๐ก audit"
|
|
351280
351339
|
}, base), {
|
|
351340
|
+
image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : defaultImage,
|
|
351281
351341
|
cache: undefined,
|
|
351282
|
-
script: __spreadArray(["cd ".concat(context.componentConfig.dir)], __read((
|
|
351342
|
+
script: __spreadArray(["cd ".concat(context.componentConfig.dir)], __read((_f = (0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [((_g = context.packageManagerInfo) === null || _g === void 0 ? void 0 : _g.isClassic) ? "yarn audit" : "yarn npm audit --environment production" // yarn 2
|
|
351283
351343
|
]), false),
|
|
351284
351344
|
allow_failure: true
|
|
351285
|
-
}) : null;
|
|
351286
|
-
var lintJob = buildConfig.lint !== false ? __assign(__assign({
|
|
351345
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts)) : null;
|
|
351346
|
+
var lintJob = buildConfig.lint !== false ? __assign(__assign(__assign({
|
|
351287
351347
|
name: "๐ฎ lint"
|
|
351288
351348
|
}, base), {
|
|
351349
|
+
image: (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.jobImage) !== null && _l !== void 0 ? _l : defaultImage,
|
|
351289
351350
|
cache: (0, cache_1.getNodeCache)(context),
|
|
351290
|
-
script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((
|
|
351291
|
-
}) : null;
|
|
351292
|
-
var testJob = buildConfig.test !== false ? __assign(__assign({
|
|
351351
|
+
script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_o = (0, utils_1.ensureArray)((_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.command)) !== null && _o !== void 0 ? _o : ["yarn lint"]), false)
|
|
351352
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.artifactsReports, (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.artifacts)) : null;
|
|
351353
|
+
var testJob = buildConfig.test !== false ? __assign(__assign(__assign({
|
|
351293
351354
|
name: "๐งช test"
|
|
351294
351355
|
}, base), {
|
|
351295
|
-
image: (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
|
|
351356
|
+
image: (_s = (_r = buildConfig.test) === null || _r === void 0 ? void 0 : _r.jobImage) !== null && _s !== void 0 ? _s : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
|
|
351296
351357
|
cache: (0, cache_1.getNodeCache)(context),
|
|
351297
|
-
script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((
|
|
351298
|
-
}) : null;
|
|
351358
|
+
script: __spreadArray(__spreadArray(["cd ".concat(context.componentConfig.dir)], __read(yarnInstall), false), __read((_u = (0, utils_1.ensureArray)((_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.command)) !== null && _u !== void 0 ? _u : ["yarn test"]), false)
|
|
351359
|
+
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.componentConfig.dir, (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.artifactsReports, (_w = buildConfig.test) === null || _w === void 0 ? void 0 : _w.artifacts)) : null;
|
|
351299
351360
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
351300
351361
|
};
|
|
351301
351362
|
exports.createNodeTestJobs = createNodeTestJobs;
|
|
@@ -351790,7 +351851,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
351790
351851
|
|
|
351791
351852
|
exports.__esModule = true;
|
|
351792
351853
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
351793
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
351854
|
+
exports.PIPELINE_IMAGE_TAG = "main-8f79dd9f" || 0;
|
|
351794
351855
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
351795
351856
|
|
|
351796
351857
|
/***/ }),
|