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

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.
@@ -90,7 +90,13 @@ exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void
90
90
  this.log("");
91
91
  this.log("postgres-PW: ".concat(DB_PASSWORD));
92
92
  this.log("");
93
- this.log("POSTGRESQL_URL=postgresql://".concat(DB_USER, ":").concat(DB_PASSWORD, "@localhost:").concat(localPort, "/").concat(DB_NAME, "?schema=public"));
93
+ this.log("connection string:");
94
+ this.log("");
95
+ this.log("postgresql://".concat(DB_USER, ":").concat(DB_PASSWORD, "@localhost:").concat(localPort, "/").concat(DB_NAME, "?schema=public"));
96
+ this.log("");
97
+ this.log("jdbc connection string:");
98
+ this.log("");
99
+ this.log("jdbc:postgresql://localhost:".concat(localPort, "/").concat(DB_NAME, "?schema=public&user=").concat(DB_USER, "&password=").concat(DB_PASSWORD));
94
100
  this.log("");
95
101
  return [4 /*yield*/, (0, child_process_promise_1.spawn)("cloud_sql_proxy", ["-instances", "".concat(instanceName, "=tcp:").concat(localPort)], {
96
102
  stdio: "inherit",
@@ -1 +1 @@
1
- {"version":3,"file":"commandCloudSqlProxy.js","sourceRoot":"","sources":["../../../../../src/apps/cli/commands/project/commandCloudSqlProxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAAyE;AACzE,gDAAqD;AACrD,+DAA8C;AAI9C,wEAK6C;AAC7C,2DAA2D;AAQ3D,sBAAe,UAAO,MAAc;;;;;gBAClC,KAAA,CAAA,KAAA,MAAM;qBACH,OAAO,CAAC,wCAAwC,EAAE,uBAAuB,CAAC,CAAA;qBAC1E,YAAY,CAAA;gBAAC,qBAAM,IAAA,kCAAgB,GAAE,EAAA;oBAFxC,sBAAA,cAEgB,SAAwB,EAAC;qBACtC,MAAM,CAAC,UAAgB,EAAgB;w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,CAAC,MAAM,EAAE,iBAAiB,CAAC;oBAClE,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,EACxC;oBACA,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;iBAChC;gBAEe,qBAAM,IAAA,6BAAU,EAC9B,IAAI,EACJ,OAAO,CAAC,WAAW,CAAC,SAAS,EAC7B,OAAO,CAAC,aAAa,CACtB,EAAA;;gBAJK,OAAO,GAAG,SAIf;gBAEK,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;gBACnC,OAAO,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC;gBAE3B,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;gBAEpD,sBAAO;wBACL,YAAY,EACV,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB;wBAChE,WAAW,aAAA;wBACX,OAAO,SAAA;wBACP,OAAO,SAAA;qBACR,EAAC;;;KACH,CAAC"}
1
+ {"version":3,"file":"commandCloudSqlProxy.js","sourceRoot":"","sources":["../../../../../src/apps/cli/commands/project/commandCloudSqlProxy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,gDAAyE;AACzE,gDAAqD;AACrD,+DAA8C;AAI9C,wEAK6C;AAC7C,2DAA2D;AAQ3D,sBAAe,UAAO,MAAc;;;;;gBAClC,KAAA,CAAA,KAAA,MAAM;qBACH,OAAO,CAAC,wCAAwC,EAAE,uBAAuB,CAAC,CAAA;qBAC1E,YAAY,CAAA;gBAAC,qBAAM,IAAA,kCAAgB,GAAE,EAAA;oBAFxC,sBAAA,cAEgB,SAAwB,EAAC;qBACtC,MAAM,CAAC,UAAgB,EAAgB;wBAAd,YAAY,kBAAA;;;;;;oCAC9B,KAAyB,IAAA,8BAAW,EAAC,YAAY,CAAC,EAAhD,GAAG,SAAA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Ac,CAAC,QAAQ,CAAC,sBAAsB,CAAC;gBAEpE,sBAAO;wBACL,YAAY,cAAA;wBACZ,WAAW,aAAA;wBACX,OAAO,SAAA;wBACP,OAAO,EAAE,UAAU;qBACpB,EAAC;;;KACH,CAAC;AAEF,IAAM,uBAAuB,GAAG,UAC9B,OAAgB;;;;;gBAEhB,IACE,CAAC,IAAA,yBAAc,EAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,iBAAiB,CAAC;oBAClE,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,EACxC;oBACA,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;iBAChC;gBAEe,qBAAM,IAAA,6BAAU,EAC9B,IAAI,EACJ,OAAO,CAAC,WAAW,CAAC,SAAS,EAC7B,OAAO,CAAC,aAAa,CACtB,EAAA;;gBAJK,OAAO,GAAG,SAIf;gBAEK,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;gBACnC,OAAO,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC;gBAE3B,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC;gBAEpD,sBAAO;wBACL,YAAY,EACV,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB;wBAChE,WAAW,aAAA;wBACX,OAAO,SAAA;wBACP,OAAO,SAAA;qBACR,EAAC;;;KACH,CAAC"}
@@ -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-defeed7a" || 0;
40111
40214
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40112
40215
 
40113
40216
  /***/ }),
@@ -1508,7 +1508,13 @@ exports["default"] = (function (vorpal) { return __awaiter(void 0, void 0, void
1508
1508
  this.log("");
1509
1509
  this.log("postgres-PW: ".concat(DB_PASSWORD));
1510
1510
  this.log("");
1511
- this.log("POSTGRESQL_URL=postgresql://".concat(DB_USER, ":").concat(DB_PASSWORD, "@localhost:").concat(localPort, "/").concat(DB_NAME, "?schema=public"));
1511
+ this.log("connection string:");
1512
+ this.log("");
1513
+ this.log("postgresql://".concat(DB_USER, ":").concat(DB_PASSWORD, "@localhost:").concat(localPort, "/").concat(DB_NAME, "?schema=public"));
1514
+ this.log("");
1515
+ this.log("jdbc connection string:");
1516
+ this.log("");
1517
+ this.log("jdbc:postgresql://localhost:".concat(localPort, "/").concat(DB_NAME, "?schema=public&user=").concat(DB_USER, "&password=").concat(DB_PASSWORD));
1512
1518
  this.log("");
1513
1519
  return [4 /*yield*/, (0, child_process_promise_1.spawn)("cloud_sql_proxy", ["-instances", "".concat(instanceName, "=tcp:").concat(localPort)], {
1514
1520
  stdio: "inherit",
@@ -350240,13 +350246,116 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
350240
350246
  exports.__esModule = true;
350241
350247
  exports.createCustomJobs = void 0;
350242
350248
  var buildJob_1 = __nccwpck_require__(62644);
350249
+ var testJob_1 = __nccwpck_require__(52253);
350243
350250
  var createCustomJobs = function (context) {
350244
- return __spreadArray([], __read((0, buildJob_1.createCustomBuildJobs)(context)), false);
350251
+ return __spreadArray(__spreadArray([], __read((0, testJob_1.createCustomTestJobs)(context)), false), __read((0, buildJob_1.createCustomBuildJobs)(context)), false);
350245
350252
  };
350246
350253
  exports.createCustomJobs = createCustomJobs;
350247
350254
 
350248
350255
  /***/ }),
350249
350256
 
350257
+ /***/ 52253:
350258
+ /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
350259
+
350260
+ "use strict";
350261
+
350262
+
350263
+ var __assign = this && this.__assign || function () {
350264
+ __assign = Object.assign || function (t) {
350265
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
350266
+ s = arguments[i];
350267
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
350268
+ }
350269
+ return t;
350270
+ };
350271
+ return __assign.apply(this, arguments);
350272
+ };
350273
+ var __read = this && this.__read || function (o, n) {
350274
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
350275
+ if (!m) return o;
350276
+ var i = m.call(o),
350277
+ r,
350278
+ ar = [],
350279
+ e;
350280
+ try {
350281
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
350282
+ } catch (error) {
350283
+ e = {
350284
+ error: error
350285
+ };
350286
+ } finally {
350287
+ try {
350288
+ if (r && !r.done && (m = i["return"])) m.call(i);
350289
+ } finally {
350290
+ if (e) throw e.error;
350291
+ }
350292
+ }
350293
+ return ar;
350294
+ };
350295
+ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
350296
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
350297
+ if (ar || !(i in from)) {
350298
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
350299
+ ar[i] = from[i];
350300
+ }
350301
+ }
350302
+ return to.concat(ar || Array.prototype.slice.call(from));
350303
+ };
350304
+ exports.__esModule = true;
350305
+ exports.createCustomTestJobs = void 0;
350306
+ var utils_1 = __nccwpck_require__(37461);
350307
+ var types_1 = __nccwpck_require__(71197);
350308
+ var RUNNER_CUSTOM_TEST_VARIABLES = {
350309
+ KUBERNETES_CPU_REQUEST: "0.5",
350310
+ KUBERNETES_CPU_LIMIT: "2",
350311
+ KUBERNETES_MEMORY_REQUEST: "2Gi",
350312
+ KUBERNETES_MEMORY_LIMIT: "4Gi"
350313
+ };
350314
+ var createCustomTestJobs = function (context) {
350315
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
350316
+ // don't run tests after release
350317
+ if (((_a = context.commitInfo) === null || _a === void 0 ? void 0 : _a.trigger) === "taggedRelease") {
350318
+ return [];
350319
+ }
350320
+ var buildConfig = context.componentConfig.build;
350321
+ if (!(0, types_1.isOfBuildType)(buildConfig, "custom")) {
350322
+ throw new Error("deploy config is not custom");
350323
+ }
350324
+ var base = {
350325
+ variables: __assign(__assign({
350326
+ APP_PATH: context.componentConfig.dir
350327
+ }, RUNNER_CUSTOM_TEST_VARIABLES), (_b = buildConfig.extraVars) !== null && _b !== void 0 ? _b : {}),
350328
+ cache: buildConfig.jobCache,
350329
+ stage: "test",
350330
+ needs: [],
350331
+ envMode: "none"
350332
+ };
350333
+ var auditJob = buildConfig.audit ? __assign(__assign({
350334
+ name: "๐Ÿ›ก audit"
350335
+ }, base), {
350336
+ image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
350337
+ cache: undefined,
350338
+ 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),
350339
+ allow_failure: true
350340
+ }) : null;
350341
+ var lintJob = buildConfig.lint ? __assign(__assign({
350342
+ name: "๐Ÿ‘ฎ lint"
350343
+ }, base), {
350344
+ image: (_h = (_g = buildConfig.lint) === null || _g === void 0 ? void 0 : _g.jobImage) !== null && _h !== void 0 ? _h : buildConfig.jobImage,
350345
+ 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)
350346
+ }) : null;
350347
+ var testJob = buildConfig.test ? __assign(__assign({
350348
+ name: "๐Ÿงช test"
350349
+ }, base), {
350350
+ image: (_m = (_l = buildConfig.test) === null || _l === void 0 ? void 0 : _l.jobImage) !== null && _m !== void 0 ? _m : buildConfig.jobImage,
350351
+ 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)
350352
+ }) : null;
350353
+ return [auditJob, lintJob, testJob].filter(utils_1.notNil);
350354
+ };
350355
+ exports.createCustomTestJobs = createCustomTestJobs;
350356
+
350357
+ /***/ }),
350358
+
350250
350359
  /***/ 33219:
350251
350360
  /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
350252
350361
 
@@ -351395,7 +351504,7 @@ exports.readConfigSync = readConfigSync;
351395
351504
 
351396
351505
  exports.__esModule = true;
351397
351506
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
351398
- exports.PIPELINE_IMAGE_TAG = "main-07fbe5cd" || 0;
351507
+ exports.PIPELINE_IMAGE_TAG = "main-defeed7a" || 0;
351399
351508
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
351400
351509
 
351401
351510
  /***/ }),