polyci 0.0.32 → 0.0.33
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/main.js +8 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -186,6 +186,7 @@ function appendModuleBuildJob(lines, module) {
|
|
|
186
186
|
lines.push(` - echo "PLI_MODULE_NAME=${module.moduleName}" > polyci.env`);
|
|
187
187
|
lines.push(` - echo "PLI_MODULE_PATH=${module.modulePath}" >> polyci.env`);
|
|
188
188
|
lines.push(` - echo "PLI_MODULE_TYPE=${module.moduleType}" >> polyci.env`);
|
|
189
|
+
lines.push(` - cat polyci.env`);
|
|
189
190
|
lines.push(` - source polyci.env`);
|
|
190
191
|
lines.push(` - source "ci/${module.moduleType}/build.sh"`);
|
|
191
192
|
lines.push(` artifacts:`);
|
|
@@ -207,6 +208,7 @@ function appendModuleTestJob(lines, module) {
|
|
|
207
208
|
lines.push(` script:`);
|
|
208
209
|
lines.push(` - cp -r ci "${module.modulePath}/ci"`);
|
|
209
210
|
lines.push(` - cd ${module.modulePath}`);
|
|
211
|
+
lines.push(` - cat polyci.env`);
|
|
210
212
|
lines.push(` - source polyci.env`);
|
|
211
213
|
lines.push(` - source "ci/${module.moduleType}/test.sh"`);
|
|
212
214
|
lines.push(` artifacts:`);
|
|
@@ -249,7 +251,7 @@ function appendModuleReleaseJob(lines, module, tagPattern, mainBranch, versionTe
|
|
|
249
251
|
lines.push(` fi`);
|
|
250
252
|
lines.push(` fi`);
|
|
251
253
|
lines.push(` - |`);
|
|
252
|
-
lines.push(` if [ -n "$PLI_MODULE_VERSION" && -n "$PLI_MODULE_TAG" ]; then`);
|
|
254
|
+
lines.push(` if [ -n "$PLI_MODULE_VERSION" ] && [ -n "$PLI_MODULE_TAG" ]; then`);
|
|
253
255
|
lines.push(` echo "PLI_MODULE_VERSION=$PLI_MODULE_VERSION" >> ${module.modulePath}/polyci.env`);
|
|
254
256
|
lines.push(` echo "PLI_MODULE_TAG=$PLI_MODULE_TAG" >> ${module.modulePath}/polyci.env`);
|
|
255
257
|
lines.push(` fi`);
|
|
@@ -281,10 +283,11 @@ function appendGlobalReleaseJob(lines, modules) {
|
|
|
281
283
|
for (const module of modules) {
|
|
282
284
|
lines.push(` - |`);
|
|
283
285
|
lines.push(` if [ -f "${module.modulePath}/polyci.env" ]; then`);
|
|
284
|
-
lines.push(` unset
|
|
286
|
+
lines.push(` unset PLI_MODULE_VERSION`);
|
|
285
287
|
lines.push(` unset PLI_MODULE_TAG`);
|
|
288
|
+
lines.push(` cat "${module.modulePath}/polyci.env"`);
|
|
286
289
|
lines.push(` source "${module.modulePath}/polyci.env"`);
|
|
287
|
-
lines.push(` if [ -n "$
|
|
290
|
+
lines.push(` if [ -n "$PLI_MODULE_VERSION" ] && [ -n "$PLI_MODULE_TAG" ]; then`);
|
|
288
291
|
lines.push(` cp -r ci "${module.modulePath}/ci"`);
|
|
289
292
|
lines.push(` ROOT_REPO_DIR="\${pwd}"`);
|
|
290
293
|
lines.push(` cd "${module.modulePath}"`);
|
|
@@ -330,6 +333,7 @@ function appendModulePublishJob(lines, module) {
|
|
|
330
333
|
lines.push(` script:`);
|
|
331
334
|
lines.push(` - cp -r ci "${module.modulePath}/ci"`);
|
|
332
335
|
lines.push(` - cd ${module.modulePath}`);
|
|
336
|
+
lines.push(` - cat polyci.env`);
|
|
333
337
|
lines.push(` - source polyci.env`);
|
|
334
338
|
lines.push(` - source "ci/${module.moduleType}/publish.sh"`);
|
|
335
339
|
lines.push(` artifacts:`);
|
|
@@ -350,6 +354,7 @@ function appendModuleDeployJob(lines, module) {
|
|
|
350
354
|
lines.push(` script:`);
|
|
351
355
|
lines.push(` - cp -r ci "${module.modulePath}/ci"`);
|
|
352
356
|
lines.push(` - cd ${module.modulePath}`);
|
|
357
|
+
lines.push(` - cat polyci.env`);
|
|
353
358
|
lines.push(` - source polyci.env`);
|
|
354
359
|
lines.push(` - source "ci/${module.moduleType}/deploy.sh"`);
|
|
355
360
|
lines.push(``);
|