From e17ef95ed56b0cec5655610a18257aa148ce4aca Mon Sep 17 00:00:00 2001 From: Sibiraj Date: Tue, 31 Jul 2018 23:04:40 +0530 Subject: [PATCH 1/3] feat: detect solano-ci --- index.js | 4 +++- test.js | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e716e34..d58856a 100644 --- a/index.js +++ b/index.js @@ -21,7 +21,8 @@ var vendors = [ ['TASKCLUSTER', 'TaskCluster', 'TASK_ID', 'RUN_ID'], ['GOCD', 'GoCD', 'GO_PIPELINE_LABEL'], ['BITBUCKET', 'Bitbucket Pipelines', 'BITBUCKET_COMMIT'], - ['CODEBUILD', 'AWS CodeBuild', 'CODEBUILD_BUILD_ARN'] + ['CODEBUILD', 'AWS CodeBuild', 'CODEBUILD_BUILD_ARN'], + ['TDDIUM', 'Solano CI', 'TDDIUM'] ] exports.name = null @@ -43,6 +44,7 @@ exports.isCI = !!( env.CI || // Travis CI, CircleCI, Gitlab CI, Appveyor, CodeShip env.CONTINUOUS_INTEGRATION || // Travis CI env.BUILD_NUMBER || // Jenkins, TeamCity + env.TDDIUM || // Solano CI exports.name || false ) diff --git a/test.js b/test.js index 6f5b925..8b6f6d4 100644 --- a/test.js +++ b/test.js @@ -27,12 +27,14 @@ assert.equal(ci.TASKCLUSTER, false) assert.equal(ci.GOCD, false) assert.equal(ci.BITBUCKET, false) assert.equal(ci.CODEBUILD, false) +assert.equal(ci.TDDIUM, false) // Not CI delete process.env.CI delete process.env.CONTINUOUS_INTEGRATION delete process.env.BUILD_NUMBER delete process.env.TRAVIS +delete process.env.TDDIUM clearRequire('./') ci = require('./') @@ -56,6 +58,7 @@ assert.equal(ci.TASKCLUSTER, false) assert.equal(ci.GOCD, false) assert.equal(ci.BITBUCKET, false) assert.equal(ci.CODEBUILD, false) +assert.equal(ci.TDDIUM, false) // Unknown CI process.env.CI = 'true' @@ -82,3 +85,4 @@ assert.equal(ci.TASKCLUSTER, false) assert.equal(ci.GOCD, false) assert.equal(ci.BITBUCKET, false) assert.equal(ci.CODEBUILD, false) +assert.equal(ci.TDDIUM, false) From 1c2416523c3faad5e60c48ee7f385641ddf55180 Mon Sep 17 00:00:00 2001 From: Sibiraj Date: Tue, 14 Aug 2018 13:22:35 +0530 Subject: [PATCH 2/3] chore: remove unwanted env check --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index d58856a..529b33e 100644 --- a/index.js +++ b/index.js @@ -44,7 +44,6 @@ exports.isCI = !!( env.CI || // Travis CI, CircleCI, Gitlab CI, Appveyor, CodeShip env.CONTINUOUS_INTEGRATION || // Travis CI env.BUILD_NUMBER || // Jenkins, TeamCity - env.TDDIUM || // Solano CI exports.name || false ) From 33e48e96a86a5e83dc6608ba68b8bf406c5821bd Mon Sep 17 00:00:00 2001 From: Sibiraj Date: Tue, 14 Aug 2018 13:38:11 +0530 Subject: [PATCH 3/3] docs: update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 2c6cccf..3a912c5 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ Officially supported CI servers: - [Jenkins CI](https://jenkins-ci.org) - [Magnum CI](https://magnum-ci.com) - [Semaphore](https://semaphoreci.com) +- [Solano CI](https://www.solanolabs.com/) - [TaskCluster](http://docs.taskcluster.net) - [Team Foundation Server](https://www.visualstudio.com/en-us/products/tfs-overview-vs.aspx) by Microsoft - [TeamCity](https://www.jetbrains.com/teamcity/) by JetBrains @@ -90,6 +91,7 @@ Otherwise `false`. - `ci.JENKINS` - `ci.MAGNUM` - `ci.SEMAPHORE` +- `ci.TDDIUM` (Solano CI) - `ci.TASKCLUSTER` - `ci.TEAMCITY` - `ci.TFS` (Team Foundation Server)