@catladder/cli 0.0.0-main-23485eda → 0.0.0-main-339b48ff
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 +38 -31
- package/dist/bundles/cli/index.js +38 -31
- package/dist/pipeline/src/build/custom/testJob.js +13 -11
- package/dist/pipeline/src/build/custom/testJob.js.map +1 -1
- package/dist/pipeline/src/build/node/testJob.js +15 -13
- package/dist/pipeline/src/build/node/testJob.js.map +1 -1
- package/dist/pipeline/src/build/rails/build.js +1 -0
- package/dist/pipeline/src/build/rails/build.js.map +1 -1
- package/dist/pipeline/src/build/rails/testJob.js +9 -7
- package/dist/pipeline/src/build/rails/testJob.js.map +1 -1
- package/dist/pipeline/src/build/types.d.ts +5 -0
- package/dist/pipeline/src/build/types.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1779,7 +1779,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
|
1779
1779
|
KUBERNETES_MEMORY_LIMIT: "4Gi",
|
|
1780
1780
|
};
|
|
1781
1781
|
const createCustomTestJobs = (context) => {
|
|
1782
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
1782
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
1783
1783
|
// don't run tests after release
|
|
1784
1784
|
// TODO: this will be replaced by using rules
|
|
1785
1785
|
if (context.trigger === "taggedRelease") {
|
|
@@ -1810,8 +1810,8 @@ const createCustomTestJobs = (context) => {
|
|
|
1810
1810
|
image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
|
|
1811
1811
|
cache: undefined,
|
|
1812
1812
|
script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
|
|
1813
|
-
allow_failure: true,
|
|
1814
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
1813
|
+
allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
|
|
1814
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
|
|
1815
1815
|
}
|
|
1816
1816
|
: null;
|
|
1817
1817
|
const lintJob = buildConfig.lint
|
|
@@ -1820,11 +1820,12 @@ const createCustomTestJobs = (context) => {
|
|
|
1820
1820
|
...base,
|
|
1821
1821
|
runnerVariables: {
|
|
1822
1822
|
...RUNNER_CUSTOM_TEST_VARIABLES,
|
|
1823
|
-
...((
|
|
1823
|
+
...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
|
|
1824
1824
|
},
|
|
1825
|
-
image: (
|
|
1826
|
-
script: [...(0, utils_1.ensureArray)((
|
|
1827
|
-
|
|
1825
|
+
image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
|
|
1826
|
+
script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
|
|
1827
|
+
allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
|
|
1828
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
|
|
1828
1829
|
}
|
|
1829
1830
|
: null;
|
|
1830
1831
|
const testJob = buildConfig.test
|
|
@@ -1833,11 +1834,12 @@ const createCustomTestJobs = (context) => {
|
|
|
1833
1834
|
...base,
|
|
1834
1835
|
runnerVariables: {
|
|
1835
1836
|
...RUNNER_CUSTOM_TEST_VARIABLES,
|
|
1836
|
-
...((
|
|
1837
|
+
...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
|
|
1837
1838
|
},
|
|
1838
|
-
image: (
|
|
1839
|
-
script: [...(0, utils_1.ensureArray)((
|
|
1840
|
-
|
|
1839
|
+
image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
|
|
1840
|
+
script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
|
|
1841
|
+
allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
|
|
1842
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
|
|
1841
1843
|
}
|
|
1842
1844
|
: null;
|
|
1843
1845
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -2376,7 +2378,7 @@ const constants_1 = __nccwpck_require__(5497);
|
|
|
2376
2378
|
const yarn_1 = __nccwpck_require__(8897);
|
|
2377
2379
|
const createJobCache_1 = __nccwpck_require__(5644);
|
|
2378
2380
|
const createNodeTestJobs = (context) => {
|
|
2379
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
2381
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
2380
2382
|
// don't run tests after release
|
|
2381
2383
|
// TODO: this will be replaced by using rules
|
|
2382
2384
|
if (context.trigger === "taggedRelease") {
|
|
@@ -2416,12 +2418,12 @@ const createNodeTestJobs = (context) => {
|
|
|
2416
2418
|
`cd ${context.build.dir}`,
|
|
2417
2419
|
...((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [
|
|
2418
2420
|
context.packageManagerInfo.isClassic
|
|
2419
|
-
? "yarn audit"
|
|
2420
|
-
: "yarn npm audit --environment production", // yarn 2
|
|
2421
|
+
? "yarn audit --level critical"
|
|
2422
|
+
: "yarn npm audit --environment production --level critical", // yarn 2
|
|
2421
2423
|
]),
|
|
2422
2424
|
],
|
|
2423
|
-
allow_failure: true,
|
|
2424
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
2425
|
+
allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true,
|
|
2426
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.audit) === null || _k === void 0 ? void 0 : _k.artifacts),
|
|
2425
2427
|
}
|
|
2426
2428
|
: null;
|
|
2427
2429
|
const lintJob = buildConfig.lint !== false
|
|
@@ -2430,17 +2432,18 @@ const createNodeTestJobs = (context) => {
|
|
|
2430
2432
|
...base,
|
|
2431
2433
|
runnerVariables: {
|
|
2432
2434
|
...constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
2433
|
-
...((
|
|
2435
|
+
...((_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
|
|
2434
2436
|
},
|
|
2435
|
-
image: (
|
|
2437
|
+
image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
|
|
2436
2438
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
2437
2439
|
script: [
|
|
2438
2440
|
...(0, yarn_1.ensureNodeVersion)(context),
|
|
2439
2441
|
`cd ${context.build.dir}`,
|
|
2440
2442
|
...yarnInstall,
|
|
2441
|
-
...((
|
|
2443
|
+
...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]),
|
|
2442
2444
|
],
|
|
2443
|
-
|
|
2445
|
+
allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure,
|
|
2446
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_t = buildConfig.lint) === null || _t === void 0 ? void 0 : _t.artifactsReports, (_u = buildConfig.lint) === null || _u === void 0 ? void 0 : _u.artifacts),
|
|
2444
2447
|
}
|
|
2445
2448
|
: null;
|
|
2446
2449
|
const testJob = buildConfig.test !== false
|
|
@@ -2449,17 +2452,18 @@ const createNodeTestJobs = (context) => {
|
|
|
2449
2452
|
...base,
|
|
2450
2453
|
runnerVariables: {
|
|
2451
2454
|
...constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
2452
|
-
...((
|
|
2455
|
+
...((_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
|
|
2453
2456
|
},
|
|
2454
|
-
image: (
|
|
2457
|
+
image: (_y = (_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.jobImage) !== null && _y !== void 0 ? _y : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
|
|
2455
2458
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
2456
2459
|
script: [
|
|
2457
2460
|
...(0, yarn_1.ensureNodeVersion)(context),
|
|
2458
2461
|
`cd ${context.build.dir}`,
|
|
2459
2462
|
...yarnInstall,
|
|
2460
|
-
...((
|
|
2463
|
+
...((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]),
|
|
2461
2464
|
],
|
|
2462
|
-
|
|
2465
|
+
allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure,
|
|
2466
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_2 = buildConfig.test) === null || _2 === void 0 ? void 0 : _2.artifactsReports, (_3 = buildConfig.test) === null || _3 === void 0 ? void 0 : _3.artifacts),
|
|
2463
2467
|
}
|
|
2464
2468
|
: null;
|
|
2465
2469
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -2599,6 +2603,7 @@ const createRailsBuildJobs = (context) => {
|
|
|
2599
2603
|
`chmod +x /usr/local/bin/pack`,
|
|
2600
2604
|
// replace private git ssh gem sources with https to make bundler with credentials via env var work
|
|
2601
2605
|
`sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock`,
|
|
2606
|
+
`pack config registry-mirrors add index.docker.io --mirror mirror.gcr.io`,
|
|
2602
2607
|
`pack build "$DOCKER_IMAGE:$DOCKER_IMAGE_TAG" --builder '${cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image}' --publish --cache-image "$DOCKER_CACHE_IMAGE" ${packEnvArgs} ${(_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : ""}`,
|
|
2603
2608
|
],
|
|
2604
2609
|
},
|
|
@@ -2636,7 +2641,7 @@ exports.createRailsTestJobs = void 0;
|
|
|
2636
2641
|
const __1 = __nccwpck_require__(241);
|
|
2637
2642
|
const utils_1 = __nccwpck_require__(595);
|
|
2638
2643
|
const createRailsTestJobs = (context) => {
|
|
2639
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
2644
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
2640
2645
|
// don't run tests after release
|
|
2641
2646
|
// TODO: this will be replaced by using rules
|
|
2642
2647
|
if (context.trigger === "taggedRelease") {
|
|
@@ -2680,7 +2685,7 @@ const createRailsTestJobs = (context) => {
|
|
|
2680
2685
|
"bundle audit check",
|
|
2681
2686
|
]),
|
|
2682
2687
|
],
|
|
2683
|
-
allow_failure: true,
|
|
2688
|
+
allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
|
|
2684
2689
|
}
|
|
2685
2690
|
: null;
|
|
2686
2691
|
const lintJob = buildConfig.lint !== false
|
|
@@ -2688,14 +2693,15 @@ const createRailsTestJobs = (context) => {
|
|
|
2688
2693
|
name: "👮 lint",
|
|
2689
2694
|
...base,
|
|
2690
2695
|
cache: bundlerCache,
|
|
2691
|
-
image: (
|
|
2696
|
+
image: (_k = (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : buildConfig.jobImage) !== null && _k !== void 0 ? _k : defaultImage,
|
|
2692
2697
|
script: [
|
|
2693
2698
|
`cd ${context.build.dir}`,
|
|
2694
2699
|
...bundlerInstall,
|
|
2695
|
-
...((
|
|
2700
|
+
...((_m = (0, utils_1.ensureArrayOrNull)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : [
|
|
2696
2701
|
"bundle exec rubocop",
|
|
2697
2702
|
]),
|
|
2698
2703
|
],
|
|
2704
|
+
allow_failure: (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.allowFailure,
|
|
2699
2705
|
}
|
|
2700
2706
|
: null;
|
|
2701
2707
|
const testJob = buildConfig.test !== false
|
|
@@ -2703,16 +2709,17 @@ const createRailsTestJobs = (context) => {
|
|
|
2703
2709
|
name: "🧪 test",
|
|
2704
2710
|
...base,
|
|
2705
2711
|
cache: bundlerCache,
|
|
2706
|
-
image: (
|
|
2712
|
+
image: (_r = (_q = (_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.jobImage) !== null && _q !== void 0 ? _q : buildConfig.jobImage) !== null && _r !== void 0 ? _r : defaultImage,
|
|
2707
2713
|
script: [
|
|
2708
2714
|
`cd ${context.build.dir}`,
|
|
2709
2715
|
...bundlerInstall,
|
|
2710
|
-
...((
|
|
2716
|
+
...((_t = (0, utils_1.ensureArrayOrNull)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : [
|
|
2711
2717
|
"bundle exec rake db:test:prepare",
|
|
2712
2718
|
"bundle exec rake assets:precompile assets:clean",
|
|
2713
2719
|
"bundle exec rspec",
|
|
2714
2720
|
]),
|
|
2715
2721
|
],
|
|
2722
|
+
allow_failure: (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.allowFailure,
|
|
2716
2723
|
runnerVariables: {
|
|
2717
2724
|
RAILS_ENV: "test",
|
|
2718
2725
|
DATABASE_URL: "postgresql://postgres@database",
|
|
@@ -2720,7 +2727,7 @@ const createRailsTestJobs = (context) => {
|
|
|
2720
2727
|
services: [
|
|
2721
2728
|
{
|
|
2722
2729
|
name: buildConfig.test && "databaseImage" in buildConfig.test
|
|
2723
|
-
? ((
|
|
2730
|
+
? ((_w = (_v = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _v === void 0 ? void 0 : _v.databaseImage) !== null && _w !== void 0 ? _w : "docker.io/postgres:latest")
|
|
2724
2731
|
: "docker.io/postgres:latest",
|
|
2725
2732
|
alias: "database",
|
|
2726
2733
|
variables: {
|
|
@@ -5045,7 +5045,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
|
5045
5045
|
KUBERNETES_MEMORY_LIMIT: "4Gi",
|
|
5046
5046
|
};
|
|
5047
5047
|
const createCustomTestJobs = (context) => {
|
|
5048
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
5048
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
5049
5049
|
// don't run tests after release
|
|
5050
5050
|
// TODO: this will be replaced by using rules
|
|
5051
5051
|
if (context.trigger === "taggedRelease") {
|
|
@@ -5076,8 +5076,8 @@ const createCustomTestJobs = (context) => {
|
|
|
5076
5076
|
image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
|
|
5077
5077
|
cache: undefined,
|
|
5078
5078
|
script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
|
|
5079
|
-
allow_failure: true,
|
|
5080
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
5079
|
+
allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
|
|
5080
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
|
|
5081
5081
|
}
|
|
5082
5082
|
: null;
|
|
5083
5083
|
const lintJob = buildConfig.lint
|
|
@@ -5086,11 +5086,12 @@ const createCustomTestJobs = (context) => {
|
|
|
5086
5086
|
...base,
|
|
5087
5087
|
runnerVariables: {
|
|
5088
5088
|
...RUNNER_CUSTOM_TEST_VARIABLES,
|
|
5089
|
-
...((
|
|
5089
|
+
...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
|
|
5090
5090
|
},
|
|
5091
|
-
image: (
|
|
5092
|
-
script: [...(0, utils_1.ensureArray)((
|
|
5093
|
-
|
|
5091
|
+
image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
|
|
5092
|
+
script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
|
|
5093
|
+
allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
|
|
5094
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
|
|
5094
5095
|
}
|
|
5095
5096
|
: null;
|
|
5096
5097
|
const testJob = buildConfig.test
|
|
@@ -5099,11 +5100,12 @@ const createCustomTestJobs = (context) => {
|
|
|
5099
5100
|
...base,
|
|
5100
5101
|
runnerVariables: {
|
|
5101
5102
|
...RUNNER_CUSTOM_TEST_VARIABLES,
|
|
5102
|
-
...((
|
|
5103
|
+
...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
|
|
5103
5104
|
},
|
|
5104
|
-
image: (
|
|
5105
|
-
script: [...(0, utils_1.ensureArray)((
|
|
5106
|
-
|
|
5105
|
+
image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
|
|
5106
|
+
script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
|
|
5107
|
+
allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
|
|
5108
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
|
|
5107
5109
|
}
|
|
5108
5110
|
: null;
|
|
5109
5111
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -5642,7 +5644,7 @@ const constants_1 = __nccwpck_require__(37878);
|
|
|
5642
5644
|
const yarn_1 = __nccwpck_require__(78897);
|
|
5643
5645
|
const createJobCache_1 = __nccwpck_require__(65644);
|
|
5644
5646
|
const createNodeTestJobs = (context) => {
|
|
5645
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
5647
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
5646
5648
|
// don't run tests after release
|
|
5647
5649
|
// TODO: this will be replaced by using rules
|
|
5648
5650
|
if (context.trigger === "taggedRelease") {
|
|
@@ -5682,12 +5684,12 @@ const createNodeTestJobs = (context) => {
|
|
|
5682
5684
|
`cd ${context.build.dir}`,
|
|
5683
5685
|
...((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [
|
|
5684
5686
|
context.packageManagerInfo.isClassic
|
|
5685
|
-
? "yarn audit"
|
|
5686
|
-
: "yarn npm audit --environment production", // yarn 2
|
|
5687
|
+
? "yarn audit --level critical"
|
|
5688
|
+
: "yarn npm audit --environment production --level critical", // yarn 2
|
|
5687
5689
|
]),
|
|
5688
5690
|
],
|
|
5689
|
-
allow_failure: true,
|
|
5690
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
5691
|
+
allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true,
|
|
5692
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.audit) === null || _k === void 0 ? void 0 : _k.artifacts),
|
|
5691
5693
|
}
|
|
5692
5694
|
: null;
|
|
5693
5695
|
const lintJob = buildConfig.lint !== false
|
|
@@ -5696,17 +5698,18 @@ const createNodeTestJobs = (context) => {
|
|
|
5696
5698
|
...base,
|
|
5697
5699
|
runnerVariables: {
|
|
5698
5700
|
...constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
5699
|
-
...((
|
|
5701
|
+
...((_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
|
|
5700
5702
|
},
|
|
5701
|
-
image: (
|
|
5703
|
+
image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
|
|
5702
5704
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
5703
5705
|
script: [
|
|
5704
5706
|
...(0, yarn_1.ensureNodeVersion)(context),
|
|
5705
5707
|
`cd ${context.build.dir}`,
|
|
5706
5708
|
...yarnInstall,
|
|
5707
|
-
...((
|
|
5709
|
+
...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]),
|
|
5708
5710
|
],
|
|
5709
|
-
|
|
5711
|
+
allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure,
|
|
5712
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_t = buildConfig.lint) === null || _t === void 0 ? void 0 : _t.artifactsReports, (_u = buildConfig.lint) === null || _u === void 0 ? void 0 : _u.artifacts),
|
|
5710
5713
|
}
|
|
5711
5714
|
: null;
|
|
5712
5715
|
const testJob = buildConfig.test !== false
|
|
@@ -5715,17 +5718,18 @@ const createNodeTestJobs = (context) => {
|
|
|
5715
5718
|
...base,
|
|
5716
5719
|
runnerVariables: {
|
|
5717
5720
|
...constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
5718
|
-
...((
|
|
5721
|
+
...((_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
|
|
5719
5722
|
},
|
|
5720
|
-
image: (
|
|
5723
|
+
image: (_y = (_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.jobImage) !== null && _y !== void 0 ? _y : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
|
|
5721
5724
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
5722
5725
|
script: [
|
|
5723
5726
|
...(0, yarn_1.ensureNodeVersion)(context),
|
|
5724
5727
|
`cd ${context.build.dir}`,
|
|
5725
5728
|
...yarnInstall,
|
|
5726
|
-
...((
|
|
5729
|
+
...((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]),
|
|
5727
5730
|
],
|
|
5728
|
-
|
|
5731
|
+
allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure,
|
|
5732
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_2 = buildConfig.test) === null || _2 === void 0 ? void 0 : _2.artifactsReports, (_3 = buildConfig.test) === null || _3 === void 0 ? void 0 : _3.artifacts),
|
|
5729
5733
|
}
|
|
5730
5734
|
: null;
|
|
5731
5735
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -5865,6 +5869,7 @@ const createRailsBuildJobs = (context) => {
|
|
|
5865
5869
|
`chmod +x /usr/local/bin/pack`,
|
|
5866
5870
|
// replace private git ssh gem sources with https to make bundler with credentials via env var work
|
|
5867
5871
|
`sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock`,
|
|
5872
|
+
`pack config registry-mirrors add index.docker.io --mirror mirror.gcr.io`,
|
|
5868
5873
|
`pack build "$DOCKER_IMAGE:$DOCKER_IMAGE_TAG" --builder '${cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image}' --publish --cache-image "$DOCKER_CACHE_IMAGE" ${packEnvArgs} ${(_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : ""}`,
|
|
5869
5874
|
],
|
|
5870
5875
|
},
|
|
@@ -5902,7 +5907,7 @@ exports.createRailsTestJobs = void 0;
|
|
|
5902
5907
|
const __1 = __nccwpck_require__(60241);
|
|
5903
5908
|
const utils_1 = __nccwpck_require__(20595);
|
|
5904
5909
|
const createRailsTestJobs = (context) => {
|
|
5905
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
5910
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
5906
5911
|
// don't run tests after release
|
|
5907
5912
|
// TODO: this will be replaced by using rules
|
|
5908
5913
|
if (context.trigger === "taggedRelease") {
|
|
@@ -5946,7 +5951,7 @@ const createRailsTestJobs = (context) => {
|
|
|
5946
5951
|
"bundle audit check",
|
|
5947
5952
|
]),
|
|
5948
5953
|
],
|
|
5949
|
-
allow_failure: true,
|
|
5954
|
+
allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
|
|
5950
5955
|
}
|
|
5951
5956
|
: null;
|
|
5952
5957
|
const lintJob = buildConfig.lint !== false
|
|
@@ -5954,14 +5959,15 @@ const createRailsTestJobs = (context) => {
|
|
|
5954
5959
|
name: "👮 lint",
|
|
5955
5960
|
...base,
|
|
5956
5961
|
cache: bundlerCache,
|
|
5957
|
-
image: (
|
|
5962
|
+
image: (_k = (_j = (_h = buildConfig.lint) === null || _h === void 0 ? void 0 : _h.jobImage) !== null && _j !== void 0 ? _j : buildConfig.jobImage) !== null && _k !== void 0 ? _k : defaultImage,
|
|
5958
5963
|
script: [
|
|
5959
5964
|
`cd ${context.build.dir}`,
|
|
5960
5965
|
...bundlerInstall,
|
|
5961
|
-
...((
|
|
5966
|
+
...((_m = (0, utils_1.ensureArrayOrNull)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : [
|
|
5962
5967
|
"bundle exec rubocop",
|
|
5963
5968
|
]),
|
|
5964
5969
|
],
|
|
5970
|
+
allow_failure: (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.allowFailure,
|
|
5965
5971
|
}
|
|
5966
5972
|
: null;
|
|
5967
5973
|
const testJob = buildConfig.test !== false
|
|
@@ -5969,16 +5975,17 @@ const createRailsTestJobs = (context) => {
|
|
|
5969
5975
|
name: "🧪 test",
|
|
5970
5976
|
...base,
|
|
5971
5977
|
cache: bundlerCache,
|
|
5972
|
-
image: (
|
|
5978
|
+
image: (_r = (_q = (_p = buildConfig.test) === null || _p === void 0 ? void 0 : _p.jobImage) !== null && _q !== void 0 ? _q : buildConfig.jobImage) !== null && _r !== void 0 ? _r : defaultImage,
|
|
5973
5979
|
script: [
|
|
5974
5980
|
`cd ${context.build.dir}`,
|
|
5975
5981
|
...bundlerInstall,
|
|
5976
|
-
...((
|
|
5982
|
+
...((_t = (0, utils_1.ensureArrayOrNull)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : [
|
|
5977
5983
|
"bundle exec rake db:test:prepare",
|
|
5978
5984
|
"bundle exec rake assets:precompile assets:clean",
|
|
5979
5985
|
"bundle exec rspec",
|
|
5980
5986
|
]),
|
|
5981
5987
|
],
|
|
5988
|
+
allow_failure: (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.allowFailure,
|
|
5982
5989
|
runnerVariables: {
|
|
5983
5990
|
RAILS_ENV: "test",
|
|
5984
5991
|
DATABASE_URL: "postgresql://postgres@database",
|
|
@@ -5986,7 +5993,7 @@ const createRailsTestJobs = (context) => {
|
|
|
5986
5993
|
services: [
|
|
5987
5994
|
{
|
|
5988
5995
|
name: buildConfig.test && "databaseImage" in buildConfig.test
|
|
5989
|
-
? ((
|
|
5996
|
+
? ((_w = (_v = buildConfig === null || buildConfig === void 0 ? void 0 : buildConfig.test) === null || _v === void 0 ? void 0 : _v.databaseImage) !== null && _w !== void 0 ? _w : "docker.io/postgres:latest")
|
|
5990
5997
|
: "docker.io/postgres:latest",
|
|
5991
5998
|
alias: "database",
|
|
5992
5999
|
variables: {
|
|
@@ -11,7 +11,7 @@ const RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
|
11
11
|
KUBERNETES_MEMORY_LIMIT: "4Gi",
|
|
12
12
|
};
|
|
13
13
|
const createCustomTestJobs = (context) => {
|
|
14
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
15
15
|
// don't run tests after release
|
|
16
16
|
// TODO: this will be replaced by using rules
|
|
17
17
|
if (context.trigger === "taggedRelease") {
|
|
@@ -42,8 +42,8 @@ const createCustomTestJobs = (context) => {
|
|
|
42
42
|
image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
|
|
43
43
|
cache: undefined,
|
|
44
44
|
script: [...(0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)],
|
|
45
|
-
allow_failure: true,
|
|
46
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
45
|
+
allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true,
|
|
46
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_h = buildConfig.audit) === null || _h === void 0 ? void 0 : _h.artifactsReports, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifacts),
|
|
47
47
|
}
|
|
48
48
|
: null;
|
|
49
49
|
const lintJob = buildConfig.lint
|
|
@@ -52,11 +52,12 @@ const createCustomTestJobs = (context) => {
|
|
|
52
52
|
...base,
|
|
53
53
|
runnerVariables: {
|
|
54
54
|
...RUNNER_CUSTOM_TEST_VARIABLES,
|
|
55
|
-
...((
|
|
55
|
+
...((_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
|
|
56
56
|
},
|
|
57
|
-
image: (
|
|
58
|
-
script: [...(0, utils_1.ensureArray)((
|
|
59
|
-
|
|
57
|
+
image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
|
|
58
|
+
script: [...(0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)],
|
|
59
|
+
allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure,
|
|
60
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_r = buildConfig.lint) === null || _r === void 0 ? void 0 : _r.artifactsReports, (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.artifacts),
|
|
60
61
|
}
|
|
61
62
|
: null;
|
|
62
63
|
const testJob = buildConfig.test
|
|
@@ -65,11 +66,12 @@ const createCustomTestJobs = (context) => {
|
|
|
65
66
|
...base,
|
|
66
67
|
runnerVariables: {
|
|
67
68
|
...RUNNER_CUSTOM_TEST_VARIABLES,
|
|
68
|
-
...((
|
|
69
|
+
...((_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
|
|
69
70
|
},
|
|
70
|
-
image: (
|
|
71
|
-
script: [...(0, utils_1.ensureArray)((
|
|
72
|
-
|
|
71
|
+
image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
|
|
72
|
+
script: [...(0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)],
|
|
73
|
+
allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure,
|
|
74
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.artifactsReports, (_0 = buildConfig.test) === null || _0 === void 0 ? void 0 : _0.artifacts),
|
|
73
75
|
}
|
|
74
76
|
: null;
|
|
75
77
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testJob.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/custom/testJob.ts"],"names":[],"mappings":";;;AAGA,uCAAkD;AAClD,yEAAsE;AACtE,4DAAmE;AACnE,oCAAyC;AAEzC,MAAM,4BAA4B,GAAG;IACnC,sBAAsB,EAAE,MAAM;IAC9B,yBAAyB,EAAE,KAAK;IAChC,uBAAuB,EAAE,KAAK;CAC/B,CAAC;AAEK,MAAM,oBAAoB,GAAG,CAClC,OAAkC,EAClB,EAAE;;IAClB,gCAAgC;IAChC,6CAA6C;IAC7C,IAAI,OAAO,CAAC,OAAO,KAAK,eAAe,EAAE,CAAC;QACxC,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;IAEzC,IAAI,CAAC,IAAA,qBAAa,EAA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Y;YAC7C,GAAG,IAAA,6CAAqB,EACtB,OAAO,CAAC,KAAK,CAAC,GAAG,EACjB,MAAA,WAAW,CAAC,IAAI,0CAAE,gBAAgB,EAClC,MAAA,WAAW,CAAC,IAAI,0CAAE,SAAS,CAC5B;SACF;QACH,CAAC,CAAC,IAAI,CAAC;IACT,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,cAAM,CAAC,CAAC;AACrD,CAAC,CAAC;AApFW,QAAA,oBAAoB,wBAoF/B"}
|
|
@@ -10,7 +10,7 @@ const constants_1 = require("./constants");
|
|
|
10
10
|
const yarn_1 = require("./yarn");
|
|
11
11
|
const createJobCache_1 = require("../cache/createJobCache");
|
|
12
12
|
const createNodeTestJobs = (context) => {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
14
14
|
// don't run tests after release
|
|
15
15
|
// TODO: this will be replaced by using rules
|
|
16
16
|
if (context.trigger === "taggedRelease") {
|
|
@@ -50,12 +50,12 @@ const createNodeTestJobs = (context) => {
|
|
|
50
50
|
`cd ${context.build.dir}`,
|
|
51
51
|
...((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [
|
|
52
52
|
context.packageManagerInfo.isClassic
|
|
53
|
-
? "yarn audit"
|
|
54
|
-
: "yarn npm audit --environment production", // yarn 2
|
|
53
|
+
? "yarn audit --level critical"
|
|
54
|
+
: "yarn npm audit --environment production --level critical", // yarn 2
|
|
55
55
|
]),
|
|
56
56
|
],
|
|
57
|
-
allow_failure: true,
|
|
58
|
-
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
57
|
+
allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true,
|
|
58
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_j = buildConfig.audit) === null || _j === void 0 ? void 0 : _j.artifactsReports, (_k = buildConfig.audit) === null || _k === void 0 ? void 0 : _k.artifacts),
|
|
59
59
|
}
|
|
60
60
|
: null;
|
|
61
61
|
const lintJob = buildConfig.lint !== false
|
|
@@ -64,17 +64,18 @@ const createNodeTestJobs = (context) => {
|
|
|
64
64
|
...base,
|
|
65
65
|
runnerVariables: {
|
|
66
66
|
...constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
67
|
-
...((
|
|
67
|
+
...((_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
|
|
68
68
|
},
|
|
69
|
-
image: (
|
|
69
|
+
image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
|
|
70
70
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
71
71
|
script: [
|
|
72
72
|
...(0, yarn_1.ensureNodeVersion)(context),
|
|
73
73
|
`cd ${context.build.dir}`,
|
|
74
74
|
...yarnInstall,
|
|
75
|
-
...((
|
|
75
|
+
...((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]),
|
|
76
76
|
],
|
|
77
|
-
|
|
77
|
+
allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure,
|
|
78
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_t = buildConfig.lint) === null || _t === void 0 ? void 0 : _t.artifactsReports, (_u = buildConfig.lint) === null || _u === void 0 ? void 0 : _u.artifacts),
|
|
78
79
|
}
|
|
79
80
|
: null;
|
|
80
81
|
const testJob = buildConfig.test !== false
|
|
@@ -83,17 +84,18 @@ const createNodeTestJobs = (context) => {
|
|
|
83
84
|
...base,
|
|
84
85
|
runnerVariables: {
|
|
85
86
|
...constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
86
|
-
...((
|
|
87
|
+
...((_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
|
|
87
88
|
},
|
|
88
|
-
image: (
|
|
89
|
+
image: (_y = (_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.jobImage) !== null && _y !== void 0 ? _y : (0, runner_1.getRunnerImage)("jobs-testing-chrome"),
|
|
89
90
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
90
91
|
script: [
|
|
91
92
|
...(0, yarn_1.ensureNodeVersion)(context),
|
|
92
93
|
`cd ${context.build.dir}`,
|
|
93
94
|
...yarnInstall,
|
|
94
|
-
...((
|
|
95
|
+
...((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]),
|
|
95
96
|
],
|
|
96
|
-
|
|
97
|
+
allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure,
|
|
98
|
+
...(0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (_2 = buildConfig.test) === null || _2 === void 0 ? void 0 : _2.artifactsReports, (_3 = buildConfig.test) === null || _3 === void 0 ? void 0 : _3.artifacts),
|
|
97
99
|
}
|
|
98
100
|
: null;
|
|
99
101
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testJob.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/node/testJob.ts"],"names":[],"mappings":";;;AAAA,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B,GAAG,WAAW;gBACd,GAAG,CAAC,MAAA,IAAA,yBAAiB,EAAC,MAAA,WAAW,CAAC,IAAI,0CAAE,OAAO,CAAC,mCAAI,CAAC,WAAW,CAAC,CAAC;aACnE;YACD,aAAa,EAAE,MAAA,WAAW,CAAC,IAAI,0CAAE,YAAY;YAC7C,GAAG,IAAA,6CAAqB,EACtB,OAAO,CAAC,KAAK,CAAC,GAAG,EACjB,MAAA,WAAW,CAAC,IAAI,0CAAE,gBAAgB,EAClC,MAAA,WAAW,CAAC,IAAI,0CAAE,SAAS,CAC5B;SACF;QACH,CAAC,CAAC,IAAI,CAAC;IACX,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,cAAM,CAAC,CAAC;AACrD,CAAC,CAAC;AAhHW,QAAA,kBAAkB,sBAgH7B"}
|
|
@@ -43,6 +43,7 @@ const createRailsBuildJobs = (context) => {
|
|
|
43
43
|
`chmod +x /usr/local/bin/pack`,
|
|
44
44
|
// replace private git ssh gem sources with https to make bundler with credentials via env var work
|
|
45
45
|
`sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock`,
|
|
46
|
+
`pack config registry-mirrors add index.docker.io --mirror mirror.gcr.io`,
|
|
46
47
|
`pack build "$DOCKER_IMAGE:$DOCKER_IMAGE_TAG" --builder '${cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image}' --publish --cache-image "$DOCKER_CACHE_IMAGE" ${packEnvArgs} ${(_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : ""}`,
|
|
47
48
|
],
|
|
48
49
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/rails/build.ts"],"names":[],"mappings":";;;AACA,6BAA0D;AAE1D,kCAAmD;AACnD,sCAImB;AACnB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AAM,EAAE;gBACN,GAAG,IAAA,0BAAiB,EAAC,OAAO,CAAC;gBAC7B,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE;gBACzB,kFAAkF,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,UAAU,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,sDAAsD;gBAC1L,8BAA8B;gBAC9B,oGAAoG;gBACpG,yEAAyE;gBACzE,2DACE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KACX,mDAAmD,WAAW,IAC5D,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa,0CAAE,IAAI,CAAC,GAAG,CAAC,mCAAI,EACvC,EAAE;aACH;SACF;KACF,CAAC,CAAC;AACL,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/rails/build.ts"],"names":[],"mappings":";;;AACA,6BAA0D;AAE1D,kCAAmD;AACnD,sCAImB;AACnB,oCAAyC;AAElC,MAAM,oBAAoB,GAAG,CAClC,OAAkC,EAClB,EAAE;;IAClB,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;IACzC,IAAI,CAAC,IAAA,qBAAa,EAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC;QACzC,oBAAoB;QACpB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,4DAA4D;IAC5D,IAAI,CAAC,IAAA,qCAAiC,EAAC,OAAO,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IAED,IAAI,IAAA,sBAAa,EAAC,OAAO,CAAC,EAAE,CAAC;QAC3B,OAAO,IAAA,+BAAwB,EAAC,OAAO,EAAE;YACvC,QAAQ,EAAE,SAAS;YACnB,WAAW,EAAE;gBACX,MAAM,EAAE,IAAA,oCAA2B,EAAC,O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