Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #146 from codecov/hotfix/semaphore
Browse files Browse the repository at this point in the history
Fix semaphore service
  • Loading branch information
eddiemoore authored Sep 20, 2019
2 parents 2ed978c + 11347a9 commit 4fc78f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/services/semaphore.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
configuration: function() {
console.log(' Semaphore 1.x CI Detected')
return {
service: 'semaphore1x',
service: 'semaphore',
build:
process.env.SEMAPHORE_BUILD_NUMBER +
'.' +
Expand Down
2 changes: 1 addition & 1 deletion lib/services/semaphore2x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
configuration: function() {
console.log(' Semaphore 2.x CI Detected')
return {
service: 'semaphore2x',
service: 'semaphore',
branch: process.env.SEMAPHORE_GIT_BRANCH,
build: process.env.SEMAPHORE_WORKFLOW_ID,
commit: process.env.SEMAPHORE_GIT_SHA,
Expand Down
2 changes: 1 addition & 1 deletion test/services/semaphore.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('Semaphore CI Provider', function() {
process.env.BRANCH_NAME = 'master'
process.env.SEMAPHORE_REPO_SLUG = 'owner/repo'
expect(semaphore.configuration()).toEqual({
service: 'semaphore1x',
service: 'semaphore',
commit: '5678',
build: '1234.1',
branch: 'master',
Expand Down
2 changes: 1 addition & 1 deletion test/services/semaphore2x.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('Semaphore 2.x CI Provider', function() {
process.env.SEMAPHORE_GIT_SHA = '5c84719708b9b649b9ef3b56af214f38cee6acde'
process.env.SEMAPHORE_WORKFLOW_ID = '65c9bb1c-aeb6-41f0-b8d9-6fa177241cdf'
expect(semaphore2.configuration()).toEqual({
service: 'semaphore2x',
service: 'semaphore',
branch: 'development',
build: '65c9bb1c-aeb6-41f0-b8d9-6fa177241cdf',
commit: '5c84719708b9b649b9ef3b56af214f38cee6acde',
Expand Down

0 comments on commit 4fc78f5

Please # to comment.