@catladder/cli 0.0.0-main-07fbe5cd โ†’ 0.0.0-main-de1c1d21

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.
@@ -38952,13 +38952,116 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
38952
38952
  exports.__esModule = true;
38953
38953
  exports.createCustomJobs = void 0;
38954
38954
  var buildJob_1 = __nccwpck_require__(2644);
38955
+ var testJob_1 = __nccwpck_require__(2253);
38955
38956
  var createCustomJobs = function (context) {
38956
- return __spreadArray([], __read((0, buildJob_1.createCustomBuildJobs)(context)), false);
38957
+ return __spreadArray(__spreadArray([], __read((0, testJob_1.createCustomTestJobs)(context)), false), __read((0, buildJob_1.createCustomBuildJobs)(context)), false);
38957
38958
  };
38958
38959
  exports.createCustomJobs = createCustomJobs;
38959
38960
 
38960
38961
  /***/ }),
38961
38962
 
38963
+ /***/ 2253:
38964
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
38965
+
38966
+ "use strict";
38967
+
38968
+
38969
+ var __assign = this && this.__assign || function () {
38970
+ __assign = Object.assign || function (t) {
38971
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
38972
+ s = arguments[i];
38973
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
38974
+ }
38975
+ return t;
38976
+ };
38977
+ return __assign.apply(this, arguments);
38978
+ };
38979
+ var __read = this && this.__read || function (o, n) {
38980
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
38981
+ if (!m) return o;
38982
+ var i = m.call(o),
38983
+ r,
38984
+ ar = [],
38985
+ e;
38986
+ try {
38987
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
38988
+ } catch (error) {
38989
+ e = {
38990
+ error: error
38991
+ };
38992
+ } finally {
38993
+ try {
38994
+ if (r && !r.done && (m = i["return"])) m.call(i);
38995
+ } finally {
38996
+ if (e) throw e.error;
38997
+ }
38998
+ }
38999
+ return ar;
39000
+ };
39001
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
39002
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
39003
+ if (ar || !(i in from)) {
39004
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
39005
+ ar[i] = from[i];
39006
+ }
39007
+ }
39008
+ return to.concat(ar || Array.prototype.slice.call(from));
39009
+ };
39010
+ exports.__esModule = true;
39011
+ exports.createCustomTestJobs = void 0;
39012
+ var utils_1 = __nccwpck_require__(7461);
39013
+ var types_1 = __nccwpck_require__(1197);
39014
+ var RUNNER_CUSTOM_TEST_VARIABLES = {
39015
+ KUBERNETES_CPU_REQUEST: "0.5",
39016
+ KUBERNETES_CPU_LIMIT: "2",
39017
+ KUBERNETES_MEMORY_REQUEST: "2Gi",
39018
+ KUBERNETES_MEMORY_LIMIT: "4Gi"
39019
+ };
39020
+ var createCustomTestJobs = function (context) {
39021
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
39022
+ // don't run tests after release
39023
+ if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
39024
+ return [];
39025
+ }
39026
+ var buildConfig = context.componentConfig.build;
39027
+ if (!(0, types_1.isOfBuildType)(buildConfig, "custom")) {
39028
+ throw new Error("deploy config is not custom");
39029
+ }
39030
+ var base = {
39031
+ variables: __assign(__assign({
39032
+ APP_PATH: context.componentConfig.dir
39033
+ }, RUNNER_CUSTOM_TEST_VARIABLES), (_b = buildConfig.extraVars) !== null && _b !== void 0 ? _b : {}),
39034
+ cache: buildConfig.jobCache,
39035
+ stage: "test",
39036
+ needs: [],
39037
+ envMode: "none"
39038
+ };
39039
+ var auditJob = buildConfig.audit ? __assign(__assign({
39040
+ name: "๐Ÿ›ก audit"
39041
+ }, base), {
39042
+ image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
39043
+ cache: undefined,
39044
+ 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),
39045
+ allow_failure: true
39046
+ }) : null;
39047
+ var lintJob = buildConfig.lint ? __assign(__assign({
39048
+ name: "๐Ÿ‘ฎ lint"
39049
+ }, base), {
39050
+ image: (_h = (_g = buildConfig.lint) === null || _g === void 0 ? void 0 : _g.jobImage) !== null && _h !== void 0 ? _h : buildConfig.jobImage,
39051
+ script: __spreadArray([], __read((_k = (0, utils_1.ensureArray)((_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.command)) !== null && _k !== void 0 ? _k : []), false)
39052
+ }) : null;
39053
+ var testJob = buildConfig.test ? __assign(__assign({
39054
+ name: "๐Ÿงช test"
39055
+ }, base), {
39056
+ image: (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage,
39057
+ script: __spreadArray([], __read((_p = (0, utils_1.ensureArray)((_o = buildConfig.test) === null || _o === void 0 ? void 0 : _o.command)) !== null && _p !== void 0 ? _p : []), false)
39058
+ }) : null;
39059
+ return [auditJob, lintJob, testJob].filter(utils_1.notNil);
39060
+ };
39061
+ exports.createCustomTestJobs = createCustomTestJobs;
39062
+
39063
+ /***/ }),
39064
+
38962
39065
  /***/ 3219:
38963
39066
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
38964
39067
 
@@ -40107,7 +40210,7 @@ exports.readConfigSync = readConfigSync;
40107
40210
 
40108
40211
  exports.__esModule = true;
40109
40212
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
40110
- exports.PIPELINE_IMAGE_TAG = "main-07fbe5cd" || 0;
40213
+ exports.PIPELINE_IMAGE_TAG = "main-de1c1d21" || 0;
40111
40214
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40112
40215
 
40113
40216
  /***/ }),
@@ -350240,13 +350240,116 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
350240
350240
  exports.__esModule = true;
350241
350241
  exports.createCustomJobs = void 0;
350242
350242
  var buildJob_1 = __nccwpck_require__(62644);
350243
+ var testJob_1 = __nccwpck_require__(52253);
350243
350244
  var createCustomJobs = function (context) {
350244
- return __spreadArray([], __read((0, buildJob_1.createCustomBuildJobs)(context)), false);
350245
+ return __spreadArray(__spreadArray([], __read((0, testJob_1.createCustomTestJobs)(context)), false), __read((0, buildJob_1.createCustomBuildJobs)(context)), false);
350245
350246
  };
350246
350247
  exports.createCustomJobs = createCustomJobs;
350247
350248
 
350248
350249
  /***/ }),
350249
350250
 
350251
+ /***/ 52253:
350252
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
350253
+
350254
+ "use strict";
350255
+
350256
+
350257
+ var __assign = this && this.__assign || function () {
350258
+ __assign = Object.assign || function (t) {
350259
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
350260
+ s = arguments[i];
350261
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
350262
+ }
350263
+ return t;
350264
+ };
350265
+ return __assign.apply(this, arguments);
350266
+ };
350267
+ var __read = this && this.__read || function (o, n) {
350268
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
350269
+ if (!m) return o;
350270
+ var i = m.call(o),
350271
+ r,
350272
+ ar = [],
350273
+ e;
350274
+ try {
350275
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
350276
+ } catch (error) {
350277
+ e = {
350278
+ error: error
350279
+ };
350280
+ } finally {
350281
+ try {
350282
+ if (r && !r.done && (m = i["return"])) m.call(i);
350283
+ } finally {
350284
+ if (e) throw e.error;
350285
+ }
350286
+ }
350287
+ return ar;
350288
+ };
350289
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
350290
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
350291
+ if (ar || !(i in from)) {
350292
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
350293
+ ar[i] = from[i];
350294
+ }
350295
+ }
350296
+ return to.concat(ar || Array.prototype.slice.call(from));
350297
+ };
350298
+ exports.__esModule = true;
350299
+ exports.createCustomTestJobs = void 0;
350300
+ var utils_1 = __nccwpck_require__(37461);
350301
+ var types_1 = __nccwpck_require__(71197);
350302
+ var RUNNER_CUSTOM_TEST_VARIABLES = {
350303
+ KUBERNETES_CPU_REQUEST: "0.5",
350304
+ KUBERNETES_CPU_LIMIT: "2",
350305
+ KUBERNETES_MEMORY_REQUEST: "2Gi",
350306
+ KUBERNETES_MEMORY_LIMIT: "4Gi"
350307
+ };
350308
+ var createCustomTestJobs = function (context) {
350309
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
350310
+ // don't run tests after release
350311
+ if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
350312
+ return [];
350313
+ }
350314
+ var buildConfig = context.componentConfig.build;
350315
+ if (!(0, types_1.isOfBuildType)(buildConfig, "custom")) {
350316
+ throw new Error("deploy config is not custom");
350317
+ }
350318
+ var base = {
350319
+ variables: __assign(__assign({
350320
+ APP_PATH: context.componentConfig.dir
350321
+ }, RUNNER_CUSTOM_TEST_VARIABLES), (_b = buildConfig.extraVars) !== null && _b !== void 0 ? _b : {}),
350322
+ cache: buildConfig.jobCache,
350323
+ stage: "test",
350324
+ needs: [],
350325
+ envMode: "none"
350326
+ };
350327
+ var auditJob = buildConfig.audit ? __assign(__assign({
350328
+ name: "๐Ÿ›ก audit"
350329
+ }, base), {
350330
+ image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
350331
+ cache: undefined,
350332
+ 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),
350333
+ allow_failure: true
350334
+ }) : null;
350335
+ var lintJob = buildConfig.lint ? __assign(__assign({
350336
+ name: "๐Ÿ‘ฎ lint"
350337
+ }, base), {
350338
+ image: (_h = (_g = buildConfig.lint) === null || _g === void 0 ? void 0 : _g.jobImage) !== null && _h !== void 0 ? _h : buildConfig.jobImage,
350339
+ script: __spreadArray([], __read((_k = (0, utils_1.ensureArray)((_j = buildConfig.lint) === null || _j === void 0 ? void 0 : _j.command)) !== null && _k !== void 0 ? _k : []), false)
350340
+ }) : null;
350341
+ var testJob = buildConfig.test ? __assign(__assign({
350342
+ name: "๐Ÿงช test"
350343
+ }, base), {
350344
+ image: (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage,
350345
+ script: __spreadArray([], __read((_p = (0, utils_1.ensureArray)((_o = buildConfig.test) === null || _o === void 0 ? void 0 : _o.command)) !== null && _p !== void 0 ? _p : []), false)
350346
+ }) : null;
350347
+ return [auditJob, lintJob, testJob].filter(utils_1.notNil);
350348
+ };
350349
+ exports.createCustomTestJobs = createCustomTestJobs;
350350
+
350351
+ /***/ }),
350352
+
350250
350353
  /***/ 33219:
350251
350354
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
350252
350355
 
@@ -351395,7 +351498,7 @@ exports.readConfigSync = readConfigSync;
351395
351498
 
351396
351499
  exports.__esModule = true;
351397
351500
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
351398
- exports.PIPELINE_IMAGE_TAG = "main-07fbe5cd" || 0;
351501
+ exports.PIPELINE_IMAGE_TAG = "main-de1c1d21" || 0;
351399
351502
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
351400
351503
 
351401
351504
  /***/ }),