From 953a7896fac07be30b1046403a47bc7de139f902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelo=20Augusto=20Vieira=20Forment=C3=A3o?= Date: Fri, 27 Oct 2017 12:03:53 -0200 Subject: [PATCH] feat(app): add flag to commit to signal VSTS CI servers to ignore the commit This avoid VSTS CI servers running another build due to changes related to versioning ISSUES CLOSED: #54 --- spec/system.spec.js | 2 +- src/lib/addFilesAndCreateTag.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system.spec.js b/spec/system.spec.js index f268f8e..16cdf99 100644 --- a/spec/system.spec.js +++ b/spec/system.spec.js @@ -462,7 +462,7 @@ describe('corp-semantic-release', function() { function expectedGitTag(expectedVersion) { // check for new commit let gitLog = shell.exec('git log | cat').stdout; - expect(gitLog).to.include(`chore(release): v${expectedVersion} [ci skip]`); + expect(gitLog).to.include(`chore(release): v${expectedVersion} [ci skip] ***NO_CI***`); let gitTag = shell.exec('git tag | cat').stdout; expect(gitTag).to.include('v' + expectedVersion); diff --git a/src/lib/addFilesAndCreateTag.js b/src/lib/addFilesAndCreateTag.js index 24f923a..aa16234 100644 --- a/src/lib/addFilesAndCreateTag.js +++ b/src/lib/addFilesAndCreateTag.js @@ -11,7 +11,7 @@ module.exports = function addFilesAndCreateTag(newVersion, mockPush) { terminateProcess(code); // ###### Commit files ##### - code = shell.exec('git commit -m "chore(release): ' + newVersion + ' [ci skip]"').code; + code = shell.exec('git commit -m "chore(release): ' + newVersion + ' [ci skip] ***NO_CI***"').code; terminateProcess(code); // ###### TAG NEW VERSION #####