@catladder/pipeline 3.39.1 โ 3.40.1
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/build/custom/testJob.js +13 -11
- package/dist/build/node/testJob.js +14 -12
- package/dist/build/rails/build.js +1 -1
- package/dist/build/rails/testJob.js +9 -7
- package/dist/build/types.d.ts +5 -0
- package/dist/constants.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/automatic-releases.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-execute-script-on-deploy.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-health-check-defaults.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-health-check-only-startup.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-health-check.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-http2.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-memory-limit.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-meteor-with-worker.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-nextjs.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-no-service.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-non-public.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-post-stop-job.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-custom-vpc-connector.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-custom-vpc.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-gen2.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-increase-timout.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-service-with-volumes.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-session-affinity.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-agents.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-gpu.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-ngnix.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-sql-legacy-jobs.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-sql-multiple-dbs.test.ts.snap +6 -6
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.test.ts.snap +4 -4
- package/examples/__snapshots__/cloud-run-with-sql.test.ts.snap +2 -2
- package/examples/__snapshots__/cloud-run-with-worker.test.ts.snap +2 -2
- package/examples/__snapshots__/custom-deploy.test.ts.snap +2 -2
- package/examples/__snapshots__/custom-docker-file.test.ts.snap +2 -2
- package/examples/__snapshots__/custom-envs.test.ts.snap +4 -4
- package/examples/__snapshots__/custom-verify-job.test.ts.snap +2 -2
- package/examples/__snapshots__/git-submodule.test.ts.snap +2 -2
- package/examples/__snapshots__/kubernetes-application-customization.test.ts.snap +2 -2
- package/examples/__snapshots__/kubernetes-with-cloud-sql.test.ts.snap +2 -2
- package/examples/__snapshots__/kubernetes-with-jobs.test.ts.snap +4 -4
- package/examples/__snapshots__/kubernetes-with-mongodb.test.ts.snap +2 -2
- package/examples/__snapshots__/local-dot-env.test.ts.snap +2 -2
- package/examples/__snapshots__/meteor-kubernetes.test.ts.snap +2 -2
- package/examples/__snapshots__/modify-generated-files.test.ts.snap +2 -2
- package/examples/__snapshots__/modify-generated-yaml.test.ts.snap +2 -2
- package/examples/__snapshots__/multiline-var.test.ts.snap +6 -6
- package/examples/__snapshots__/native-app.test.ts.snap +4 -4
- package/examples/__snapshots__/node-build-with-custom-image.test.ts.snap +2 -2
- package/examples/__snapshots__/node-build-with-docker-additions.test.ts.snap +2 -2
- package/examples/__snapshots__/override-secrets.test.ts.snap +2 -2
- package/examples/__snapshots__/rails-k8s-with-worker.test.ts.snap +4 -0
- package/examples/__snapshots__/referencing-other-vars.test.ts.snap +6 -6
- package/examples/__snapshots__/wait-for-other-deploy.test.ts.snap +4 -4
- package/examples/__snapshots__/workspace-api-www-turbo-cache.test.ts.snap +2 -2
- package/examples/__snapshots__/workspace-api-www.test.ts.snap +2 -2
- package/package.json +1 -1
- package/src/build/custom/__tests__/testJob.test.ts +70 -0
- package/src/build/custom/testJob.ts +3 -1
- package/src/build/node/testJob.ts +5 -3
- package/src/build/rails/build.ts +1 -0
- package/src/build/rails/testJob.ts +3 -1
- package/src/build/types.ts +6 -0
|
@@ -55,7 +55,7 @@ var RUNNER_CUSTOM_TEST_VARIABLES = {
|
|
|
55
55
|
KUBERNETES_MEMORY_LIMIT: "4Gi"
|
|
56
56
|
};
|
|
57
57
|
var createCustomTestJobs = function (context) {
|
|
58
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
58
|
+
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;
|
|
59
59
|
// don't run tests after release
|
|
60
60
|
// TODO: this will be replaced by using rules
|
|
61
61
|
if (context.trigger === "taggedRelease") {
|
|
@@ -81,22 +81,24 @@ var createCustomTestJobs = function (context) {
|
|
|
81
81
|
image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : buildConfig.jobImage,
|
|
82
82
|
cache: undefined,
|
|
83
83
|
script: __spreadArray([], __read((0, utils_1.ensureArray)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)), false),
|
|
84
|
-
allow_failure: true
|
|
85
|
-
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
84
|
+
allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true
|
|
85
|
+
}), (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)) : null;
|
|
86
86
|
var lintJob = buildConfig.lint ? __assign(__assign(__assign({
|
|
87
87
|
name: "๐ฎ lint"
|
|
88
88
|
}, base), {
|
|
89
|
-
runnerVariables: __assign(__assign({}, RUNNER_CUSTOM_TEST_VARIABLES), (
|
|
90
|
-
image: (
|
|
91
|
-
script: __spreadArray([], __read((0, utils_1.ensureArray)((
|
|
92
|
-
|
|
89
|
+
runnerVariables: __assign(__assign({}, RUNNER_CUSTOM_TEST_VARIABLES), (_l = (_k = buildConfig.lint) === null || _k === void 0 ? void 0 : _k.runnerVariables) !== null && _l !== void 0 ? _l : {}),
|
|
90
|
+
image: (_o = (_m = buildConfig.lint) === null || _m === void 0 ? void 0 : _m.jobImage) !== null && _o !== void 0 ? _o : buildConfig.jobImage,
|
|
91
|
+
script: __spreadArray([], __read((0, utils_1.ensureArray)((_p = buildConfig.lint) === null || _p === void 0 ? void 0 : _p.command)), false),
|
|
92
|
+
allow_failure: (_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.allowFailure
|
|
93
|
+
}), (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)) : null;
|
|
93
94
|
var testJob = buildConfig.test ? __assign(__assign(__assign({
|
|
94
95
|
name: "๐งช test"
|
|
95
96
|
}, base), {
|
|
96
|
-
runnerVariables: __assign(__assign({}, RUNNER_CUSTOM_TEST_VARIABLES), (
|
|
97
|
-
image: (
|
|
98
|
-
script: __spreadArray([], __read((0, utils_1.ensureArray)((
|
|
99
|
-
|
|
97
|
+
runnerVariables: __assign(__assign({}, RUNNER_CUSTOM_TEST_VARIABLES), (_u = (_t = buildConfig.test) === null || _t === void 0 ? void 0 : _t.runnerVariables) !== null && _u !== void 0 ? _u : {}),
|
|
98
|
+
image: (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.jobImage) !== null && _w !== void 0 ? _w : buildConfig.jobImage,
|
|
99
|
+
script: __spreadArray([], __read((0, utils_1.ensureArray)((_x = buildConfig.test) === null || _x === void 0 ? void 0 : _x.command)), false),
|
|
100
|
+
allow_failure: (_y = buildConfig.test) === null || _y === void 0 ? void 0 : _y.allowFailure
|
|
101
|
+
}), (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)) : null;
|
|
100
102
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
101
103
|
};
|
|
102
104
|
exports.createCustomTestJobs = createCustomTestJobs;
|
|
@@ -54,7 +54,7 @@ var constants_1 = require("./constants");
|
|
|
54
54
|
var yarn_1 = require("./yarn");
|
|
55
55
|
var createJobCache_1 = require("../cache/createJobCache");
|
|
56
56
|
var createNodeTestJobs = function (context) {
|
|
57
|
-
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;
|
|
57
|
+
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;
|
|
58
58
|
// don't run tests after release
|
|
59
59
|
// TODO: this will be replaced by using rules
|
|
60
60
|
if (context.trigger === "taggedRelease") {
|
|
@@ -80,26 +80,28 @@ var createNodeTestJobs = function (context) {
|
|
|
80
80
|
runnerVariables: __assign(__assign({}, constants_1.NODE_RUNNER_BUILD_VARIABLES), (_b = (_a = buildConfig.audit) === null || _a === void 0 ? void 0 : _a.runnerVariables) !== null && _b !== void 0 ? _b : {}),
|
|
81
81
|
image: (_d = (_c = buildConfig.audit) === null || _c === void 0 ? void 0 : _c.jobImage) !== null && _d !== void 0 ? _d : defaultImage,
|
|
82
82
|
cache: undefined,
|
|
83
|
-
script: __spreadArray(["cd ".concat(context.build.dir)], __read((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [context.packageManagerInfo.isClassic ? "yarn audit" : "yarn npm audit --environment production" // yarn 2
|
|
83
|
+
script: __spreadArray(["cd ".concat(context.build.dir)], __read((_f = (0, utils_1.ensureArrayOrNull)((_e = buildConfig.audit) === null || _e === void 0 ? void 0 : _e.command)) !== null && _f !== void 0 ? _f : [context.packageManagerInfo.isClassic ? "yarn audit --level critical" : "yarn npm audit --environment production --level critical" // yarn 2
|
|
84
84
|
]), false),
|
|
85
|
-
allow_failure: true
|
|
86
|
-
}), (0, createArtifactsConfig_1.createArtifactsConfig)(context.build.dir, (
|
|
85
|
+
allow_failure: (_h = (_g = buildConfig.audit) === null || _g === void 0 ? void 0 : _g.allowFailure) !== null && _h !== void 0 ? _h : true
|
|
86
|
+
}), (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)) : null;
|
|
87
87
|
var lintJob = buildConfig.lint !== false ? __assign(__assign(__assign({
|
|
88
88
|
name: "๐ฎ lint"
|
|
89
89
|
}, base), {
|
|
90
|
-
runnerVariables: __assign(__assign({}, constants_1.NODE_RUNNER_BUILD_VARIABLES), (
|
|
91
|
-
image: (
|
|
90
|
+
runnerVariables: __assign(__assign({}, constants_1.NODE_RUNNER_BUILD_VARIABLES), (_m = (_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.runnerVariables) !== null && _m !== void 0 ? _m : {}),
|
|
91
|
+
image: (_p = (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.jobImage) !== null && _p !== void 0 ? _p : defaultImage,
|
|
92
92
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
93
|
-
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.build.dir)], false), __read(yarnInstall), false), __read((
|
|
94
|
-
|
|
93
|
+
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.build.dir)], false), __read(yarnInstall), false), __read((_r = (0, utils_1.ensureArrayOrNull)((_q = buildConfig.lint) === null || _q === void 0 ? void 0 : _q.command)) !== null && _r !== void 0 ? _r : ["yarn lint"]), false),
|
|
94
|
+
allow_failure: (_s = buildConfig.lint) === null || _s === void 0 ? void 0 : _s.allowFailure
|
|
95
|
+
}), (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)) : null;
|
|
95
96
|
var testJob = buildConfig.test !== false ? __assign(__assign(__assign({
|
|
96
97
|
name: "๐งช test"
|
|
97
98
|
}, base), {
|
|
98
|
-
runnerVariables: __assign(__assign({}, constants_1.NODE_RUNNER_BUILD_VARIABLES), (
|
|
99
|
-
image: (
|
|
99
|
+
runnerVariables: __assign(__assign({}, constants_1.NODE_RUNNER_BUILD_VARIABLES), (_w = (_v = buildConfig.test) === null || _v === void 0 ? void 0 : _v.runnerVariables) !== null && _w !== void 0 ? _w : {}),
|
|
100
|
+
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"),
|
|
100
101
|
cache: (0, createJobCache_1.createJobCacheFromCacheConfigs)(context, (0, cache_1.getNodeCache)(context)),
|
|
101
|
-
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.build.dir)], false), __read(yarnInstall), false), __read((
|
|
102
|
-
|
|
102
|
+
script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.build.dir)], false), __read(yarnInstall), false), __read((_0 = (0, utils_1.ensureArrayOrNull)((_z = buildConfig.test) === null || _z === void 0 ? void 0 : _z.command)) !== null && _0 !== void 0 ? _0 : ["yarn test"]), false),
|
|
103
|
+
allow_failure: (_1 = buildConfig.test) === null || _1 === void 0 ? void 0 : _1.allowFailure
|
|
104
|
+
}), (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)) : null;
|
|
103
105
|
return [auditJob, lintJob, testJob].filter(utils_1.notNil);
|
|
104
106
|
};
|
|
105
107
|
exports.createNodeTestJobs = createNodeTestJobs;
|
|
@@ -83,7 +83,7 @@ var createRailsBuildJobs = function (context) {
|
|
|
83
83
|
// custom script
|
|
84
84
|
script: __spreadArray(__spreadArray([], __read((0, docker_1.gitlabDockerLogin)(context)), false), ["cd ".concat(context.build.dir), "wget --output-document=- https://github.com/buildpacks/pack/releases/download/v".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "/pack-v").concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packVersion, "-linux.tgz | tar -zx --directory /usr/local/bin pack"), "chmod +x /usr/local/bin/pack",
|
|
85
85
|
// replace private git ssh gem sources with https to make bundler with credentials via env var work
|
|
86
|
-
"sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock", "pack build \"$DOCKER_IMAGE:$DOCKER_IMAGE_TAG\" --builder '".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image, "' --publish --cache-image \"$DOCKER_CACHE_IMAGE\" ").concat(packEnvArgs, " ").concat((_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : "")], false)
|
|
86
|
+
"sed --in-place 's|git@\\([^:]*\\):|https://\\1/|g' Gemfile Gemfile.lock", "pack config registry-mirrors add index.docker.io --mirror mirror.gcr.io", "pack build \"$DOCKER_IMAGE:$DOCKER_IMAGE_TAG\" --builder '".concat(cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.image, "' --publish --cache-image \"$DOCKER_CACHE_IMAGE\" ").concat(packEnvArgs, " ").concat((_c = (_b = cnbConf === null || cnbConf === void 0 ? void 0 : cnbConf.packExtraArgs) === null || _b === void 0 ? void 0 : _b.join(" ")) !== null && _c !== void 0 ? _c : "")], false)
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
};
|
|
@@ -48,7 +48,7 @@ exports.createRailsTestJobs = void 0;
|
|
|
48
48
|
var __1 = require("../..");
|
|
49
49
|
var utils_1 = require("../../utils");
|
|
50
50
|
var createRailsTestJobs = function (context) {
|
|
51
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
51
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
52
52
|
// don't run tests after release
|
|
53
53
|
// TODO: this will be replaced by using rules
|
|
54
54
|
if (context.trigger === "taggedRelease") {
|
|
@@ -80,27 +80,29 @@ var createRailsTestJobs = function (context) {
|
|
|
80
80
|
cache: undefined,
|
|
81
81
|
image: (_c = (_b = (_a = buildConfig.audit) === null || _a === void 0 ? void 0 : _a.jobImage) !== null && _b !== void 0 ? _b : buildConfig.jobImage) !== null && _c !== void 0 ? _c : defaultImage,
|
|
82
82
|
script: __spreadArray(["cd ".concat(context.build.dir)], __read((_e = (0, utils_1.ensureArrayOrNull)((_d = buildConfig.audit) === null || _d === void 0 ? void 0 : _d.command)) !== null && _e !== void 0 ? _e : ["gem install bundler-audit", "bundle audit check"]), false),
|
|
83
|
-
allow_failure: true
|
|
83
|
+
allow_failure: (_g = (_f = buildConfig.audit) === null || _f === void 0 ? void 0 : _f.allowFailure) !== null && _g !== void 0 ? _g : true
|
|
84
84
|
}) : null;
|
|
85
85
|
var lintJob = buildConfig.lint !== false ? __assign(__assign({
|
|
86
86
|
name: "๐ฎ lint"
|
|
87
87
|
}, base), {
|
|
88
88
|
cache: bundlerCache,
|
|
89
|
-
image: (
|
|
90
|
-
script: __spreadArray(__spreadArray(["cd ".concat(context.build.dir)], __read(bundlerInstall), false), __read((
|
|
89
|
+
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,
|
|
90
|
+
script: __spreadArray(__spreadArray(["cd ".concat(context.build.dir)], __read(bundlerInstall), false), __read((_m = (0, utils_1.ensureArrayOrNull)((_l = buildConfig.lint) === null || _l === void 0 ? void 0 : _l.command)) !== null && _m !== void 0 ? _m : ["bundle exec rubocop"]), false),
|
|
91
|
+
allow_failure: (_o = buildConfig.lint) === null || _o === void 0 ? void 0 : _o.allowFailure
|
|
91
92
|
}) : null;
|
|
92
93
|
var testJob = buildConfig.test !== false ? __assign(__assign({
|
|
93
94
|
name: "๐งช test"
|
|
94
95
|
}, base), {
|
|
95
96
|
cache: bundlerCache,
|
|
96
|
-
image: (
|
|
97
|
-
script: __spreadArray(__spreadArray(["cd ".concat(context.build.dir)], __read(bundlerInstall), false), __read((
|
|
97
|
+
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,
|
|
98
|
+
script: __spreadArray(__spreadArray(["cd ".concat(context.build.dir)], __read(bundlerInstall), false), __read((_t = (0, utils_1.ensureArrayOrNull)((_s = buildConfig.test) === null || _s === void 0 ? void 0 : _s.command)) !== null && _t !== void 0 ? _t : ["bundle exec rake db:test:prepare", "bundle exec rake assets:precompile assets:clean", "bundle exec rspec"]), false),
|
|
99
|
+
allow_failure: (_u = buildConfig.test) === null || _u === void 0 ? void 0 : _u.allowFailure,
|
|
98
100
|
runnerVariables: {
|
|
99
101
|
RAILS_ENV: "test",
|
|
100
102
|
DATABASE_URL: "postgresql://postgres@database"
|
|
101
103
|
},
|
|
102
104
|
services: [{
|
|
103
|
-
name: buildConfig.test && "databaseImage" in buildConfig.test ? (
|
|
105
|
+
name: buildConfig.test && "databaseImage" in buildConfig.test ? (_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" : "docker.io/postgres:latest",
|
|
104
106
|
alias: "database",
|
|
105
107
|
variables: {
|
|
106
108
|
POSTGRES_HOST_AUTH_METHOD: "trust"
|
package/dist/build/types.d.ts
CHANGED
|
@@ -66,6 +66,11 @@ export type TestJobCustom = {
|
|
|
66
66
|
* additional vars for this job runner
|
|
67
67
|
*/
|
|
68
68
|
runnerVariables?: Record<string, string>;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the job is allowed to fail without blocking the pipeline.
|
|
71
|
+
* Defaults to `true` for audit jobs, `undefined` (not set) for lint and test jobs.
|
|
72
|
+
*/
|
|
73
|
+
allowFailure?: boolean;
|
|
69
74
|
};
|
|
70
75
|
export type BuildConfigBase = {
|
|
71
76
|
/**
|
package/dist/constants.js
CHANGED
|
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
7
|
-
exports.PIPELINE_IMAGE_TAG = "v3-
|
|
7
|
+
exports.PIPELINE_IMAGE_TAG = "v3-40-1-3146bdf0" || "latest";
|
|
8
8
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || "git.panter.ch:5001/catladder/catladder";
|