Skip to content

Commit

Permalink
Merge pull request #2 from alexdebrie/AWSCodeBuild
Browse files Browse the repository at this point in the history
Add AWS CodeBuild to CI detection
  • Loading branch information
watson authored Sep 5, 2017
2 parents aac11e0 + c6bc64b commit 50b56e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ var vendors = [
['HUDSON', 'Hudsun', 'HUDSON_URL'],
['TASKCLUSTER', 'TaskCluster', 'TASK_ID', 'RUN_ID'],
['GOCD', 'GoCD', 'GO_PIPELINE_LABEL'],
['BITBUCKET', 'Bitbucket Pipelines', 'BITBUCKET_COMMIT']
['BITBUCKET', 'Bitbucket Pipelines', 'BITBUCKET_COMMIT'],
['CODEBUILD', 'AWS CodeBuild', 'CODEBUILD_BUILD_ARN']
]

exports.name = null
Expand Down
3 changes: 3 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ assert.equal(ci.HUDSON, false)
assert.equal(ci.TASKCLUSTER, false)
assert.equal(ci.GOCD, false)
assert.equal(ci.BITBUCKET, false)
assert.equal(ci.CODEBUILD, false)

// Not CI
delete process.env.CI
Expand Down Expand Up @@ -54,6 +55,7 @@ assert.equal(ci.HUDSON, false)
assert.equal(ci.TASKCLUSTER, false)
assert.equal(ci.GOCD, false)
assert.equal(ci.BITBUCKET, false)
assert.equal(ci.CODEBUILD, false)

// Unknown CI
process.env.CI = 'true'
Expand All @@ -79,3 +81,4 @@ assert.equal(ci.HUDSON, false)
assert.equal(ci.TASKCLUSTER, false)
assert.equal(ci.GOCD, false)
assert.equal(ci.BITBUCKET, false)
assert.equal(ci.CODEBUILD, false)

0 comments on commit 50b56e4

Please sign in to comment.