Comparing version 1.6.0 to 2.0.0
# Changelog | ||
## v2.0.0 | ||
Breaking changes: | ||
* Drop support for Node.js end-of-life versions: 0.10, 0.12, 4, 5, 7, | ||
and 9 | ||
* Team Foundation Server will now be detected as Azure Pipelines. The | ||
constant `ci.TFS` no longer exists - use `ci.AZURE_PIPELINES` instead | ||
* Remove deprecated `ci.TDDIUM` constant - use `ci.SOLANDO` instead | ||
New features: | ||
* feat: support Azure Pipelines ([#23](https://github.com/watson/ci-info/pull/23)) | ||
* feat: support Netlify CI ([#26](https://github.com/watson/ci-info/pull/26)) | ||
* feat: support Bitbucket pipelines PR detection ([#27](https://github.com/watson/ci-info/pull/27)) | ||
## v1.6.0 | ||
@@ -4,0 +20,0 @@ |
@@ -7,3 +7,3 @@ 'use strict' | ||
// Used for testinging only | ||
// Used for testing only | ||
Object.defineProperty(exports, '_vendors', { | ||
@@ -10,0 +10,0 @@ value: vendors.map(function (v) { return v.constant }) |
{ | ||
"name": "ci-info", | ||
"version": "1.6.0", | ||
"version": "2.0.0", | ||
"description": "Get details about the current Continuous Integration environment", | ||
@@ -33,5 +33,5 @@ "main": "index.js", | ||
"coordinates": [ | ||
55.778271, | ||
12.593091 | ||
55.778231, | ||
12.593179 | ||
] | ||
} |
@@ -35,30 +35,31 @@ # ci-info | ||
| Name | Constant | | ||
|------|----------| | ||
| [AWS CodeBuild](https://aws.amazon.com/codebuild/) | `ci.CODEBUILD` | | ||
| [AppVeyor](http://www.appveyor.com) | `ci.APPVEYOR` | | ||
| [Bamboo](https://www.atlassian.com/software/bamboo) by Atlassian | `ci.BAMBOO` | | ||
| [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) | `ci.BITBUCKET` | | ||
| [Bitrise](https://www.bitrise.io/) | `ci.BITRISE` | | ||
| [Buddy](https://buddy.works/) | `ci.BUDDY` | | ||
| [Buildkite](https://buildkite.com) | `ci.BUILDKITE` | | ||
| [CircleCI](http://circleci.com) | `ci.CIRCLE` | | ||
| [Cirrus CI](https://cirrus-ci.org) | `ci.CIRRUS` | | ||
| [Codeship](https://codeship.com) | `ci.CODESHIP` | | ||
| [Drone](https://drone.io) | `ci.DRONE` | | ||
| [dsari](https://github.com/rfinnie/dsari) | `ci.DSARI` | | ||
| [GitLab CI](https://about.gitlab.com/gitlab-ci/) | `ci.GITLAB` | | ||
| [GoCD](https://www.go.cd/) | `ci.GOCD` | | ||
| [Hudson](http://hudson-ci.org) | `ci.HUDSON` | | ||
| [Jenkins CI](https://jenkins-ci.org) | `ci.JENKINS` | | ||
| [Magnum CI](https://magnum-ci.com) | `ci.MAGNUM` | | ||
| [Sail CI](https://sail.ci/) | `ci.SAIL` | | ||
| [Semaphore](https://semaphoreci.com) | `ci.SEMAPHORE` | | ||
| [Shippable](https://www.shippable.com/) | `ci.SHIPPABLE` | | ||
| [Solano CI](https://www.solanolabs.com/) | `ci.SOLANO` | | ||
| [Strider CD](https://strider-cd.github.io/) | `ci.STRIDER` | | ||
| [TaskCluster](http://docs.taskcluster.net) | `ci.TASKCLUSTER` | | ||
| [Team Foundation Server](https://www.visualstudio.com/en-us/products/tfs-overview-vs.aspx) by Microsoft | `ci.TFS` | | ||
| [TeamCity](https://www.jetbrains.com/teamcity/) by JetBrains | `ci.TEAMCITY` | | ||
| [Travis CI](http://travis-ci.org) | `ci.TRAVIS` | | ||
| Name | Constant | isPR | | ||
|------|----------|------| | ||
| [AWS CodeBuild](https://aws.amazon.com/codebuild/) | `ci.CODEBUILD` | 🚫 | | ||
| [AppVeyor](http://www.appveyor.com) | `ci.APPVEYOR` | ✅ | | ||
| [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) | `ci.AZURE_PIPELINES` | ✅ | | ||
| [Bamboo](https://www.atlassian.com/software/bamboo) by Atlassian | `ci.BAMBOO` | 🚫 | | ||
| [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) | `ci.BITBUCKET` | ✅ | | ||
| [Bitrise](https://www.bitrise.io/) | `ci.BITRISE` | ✅ | | ||
| [Buddy](https://buddy.works/) | `ci.BUDDY` | ✅ | | ||
| [Buildkite](https://buildkite.com) | `ci.BUILDKITE` | ✅ | | ||
| [CircleCI](http://circleci.com) | `ci.CIRCLE` | ✅ | | ||
| [Cirrus CI](https://cirrus-ci.org) | `ci.CIRRUS` | ✅ | | ||
| [Codeship](https://codeship.com) | `ci.CODESHIP` | 🚫 | | ||
| [Drone](https://drone.io) | `ci.DRONE` | ✅ | | ||
| [dsari](https://github.com/rfinnie/dsari) | `ci.DSARI` | 🚫 | | ||
| [GitLab CI](https://about.gitlab.com/gitlab-ci/) | `ci.GITLAB` | 🚫 | | ||
| [GoCD](https://www.go.cd/) | `ci.GOCD` | 🚫 | | ||
| [Hudson](http://hudson-ci.org) | `ci.HUDSON` | 🚫 | | ||
| [Jenkins CI](https://jenkins-ci.org) | `ci.JENKINS` | ✅ | | ||
| [Magnum CI](https://magnum-ci.com) | `ci.MAGNUM` | 🚫 | | ||
| [Netlify CI](https://www.netlify.com/) | `ci.NETLIFY` | ✅ | | ||
| [Sail CI](https://sail.ci/) | `ci.SAIL` | ✅ | | ||
| [Semaphore](https://semaphoreci.com) | `ci.SEMAPHORE` | ✅ | | ||
| [Shippable](https://www.shippable.com/) | `ci.SHIPPABLE` | ✅ | | ||
| [Solano CI](https://www.solanolabs.com/) | `ci.SOLANO` | ✅ | | ||
| [Strider CD](https://strider-cd.github.io/) | `ci.STRIDER` | 🚫 | | ||
| [TaskCluster](http://docs.taskcluster.net) | `ci.TASKCLUSTER` | 🚫 | | ||
| [TeamCity](https://www.jetbrains.com/teamcity/) by JetBrains | `ci.TEAMCITY` | 🚫 | | ||
| [Travis CI](http://travis-ci.org) | `ci.TRAVIS` | ✅ | | ||
@@ -69,4 +70,4 @@ ## API | ||
A string. Will contain the name of the CI server the code is running on. | ||
If not CI server is detected, it will be `null`. | ||
Returns a string containing name of the CI server the code is running on. | ||
If CI server is not detected, it returns `null`. | ||
@@ -79,4 +80,4 @@ Don't depend on the value of this string not to change for a specific | ||
A boolean. Will be `true` if the code is running on a CI server. | ||
Otherwise `false`. | ||
Returns a boolean. Will be `true` if the code is running on a CI server, | ||
otherwise `false`. | ||
@@ -90,4 +91,4 @@ Some CI servers not listed here might still trigger the `ci.isCI` | ||
A boolean if PR detection is supported for the current CI server. Will | ||
be `true` if a PR is being tested. Otherwise `false`. If PR detection is | ||
Returns a boolean if PR detection is supported for the current CI server. Will | ||
be `true` if a PR is being tested, otherwise `false`. If PR detection is | ||
not supported for the current CI server, the value will be `null`. | ||
@@ -97,5 +98,5 @@ | ||
A vendor specific boolean constants is exposed for each support CI | ||
A vendor specific boolean constant is exposed for each support CI | ||
vendor. A constant will be `true` if the code is determined to run on | ||
the given CI server. Otherwise `false`. | ||
the given CI server, otherwise `false`. | ||
@@ -102,0 +103,0 @@ Examples of vendor constants are `ci.TRAVIS` or `ci.APPVEYOR`. For a |
@@ -9,2 +9,8 @@ [ | ||
{ | ||
"name": "Azure Pipelines", | ||
"constant": "AZURE_PIPELINES", | ||
"env": "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI", | ||
"pr": "SYSTEM_PULLREQUEST_PULLREQUESTID" | ||
}, | ||
{ | ||
"name": "Bamboo", | ||
@@ -17,3 +23,4 @@ "constant": "BAMBOO", | ||
"constant": "BITBUCKET", | ||
"env": "BITBUCKET_COMMIT" | ||
"env": "BITBUCKET_COMMIT", | ||
"pr": "BITBUCKET_PR_ID" | ||
}, | ||
@@ -98,2 +105,8 @@ { | ||
{ | ||
"name": "Netlify CI", | ||
"constant": "NETLIFY", | ||
"env": "NETLIFY_BUILD_BASE", | ||
"pr": { "env": "PULL_REQUEST", "ne": "false" } | ||
}, | ||
{ | ||
"name": "Sail CI", | ||
@@ -133,9 +146,2 @@ "constant": "SAIL", | ||
{ | ||
"name": "Solano CI", | ||
"constant": "TDDIUM", | ||
"env": "TDDIUM", | ||
"pr": "TDDIUM_PR_ID", | ||
"deprecated": true | ||
}, | ||
{ | ||
"name": "TeamCity", | ||
@@ -146,7 +152,2 @@ "constant": "TEAMCITY", | ||
{ | ||
"name": "Team Foundation Server", | ||
"constant": "TFS", | ||
"env": "TF_BUILD" | ||
}, | ||
{ | ||
"name": "Travis CI", | ||
@@ -153,0 +154,0 @@ "constant": "TRAVIS", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12808
209
109