summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/ci-info
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/ci-info')
-rw-r--r--deps/npm/node_modules/ci-info/CHANGELOG.md16
-rw-r--r--deps/npm/node_modules/ci-info/README.md73
-rw-r--r--deps/npm/node_modules/ci-info/index.js2
-rw-r--r--deps/npm/node_modules/ci-info/package.json29
-rw-r--r--deps/npm/node_modules/ci-info/vendors.json27
5 files changed, 82 insertions, 65 deletions
diff --git a/deps/npm/node_modules/ci-info/CHANGELOG.md b/deps/npm/node_modules/ci-info/CHANGELOG.md
index 859a0ad12a..66b9cf0b28 100644
--- a/deps/npm/node_modules/ci-info/CHANGELOG.md
+++ b/deps/npm/node_modules/ci-info/CHANGELOG.md
@@ -1,5 +1,21 @@
# 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
* feat: add Sail CI support
diff --git a/deps/npm/node_modules/ci-info/README.md b/deps/npm/node_modules/ci-info/README.md
index c88be8f82d..12c4f62175 100644
--- a/deps/npm/node_modules/ci-info/README.md
+++ b/deps/npm/node_modules/ci-info/README.md
@@ -32,41 +32,42 @@ if (ci.isCI) {
Officially supported CI servers:
-| 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` | ✅ |
## API
### `ci.name`
-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`.
Don't depend on the value of this string not to change for a specific
vendor. If you find your self writing `ci.name === 'Travis CI'`, you
@@ -74,8 +75,8 @@ most likely want to use `ci.TRAVIS` instead.
### `ci.isCI`
-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`.
Some CI servers not listed here might still trigger the `ci.isCI`
boolean to be set to `true` if they use certain vendor neutral
@@ -84,15 +85,15 @@ vendor specific boolean will be set to `true`.
### `ci.isPR`
-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`.
### `ci.<VENDOR-CONSTANT>`
-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`.
Examples of vendor constants are `ci.TRAVIS` or `ci.APPVEYOR`. For a
complete list, see the support table above.
diff --git a/deps/npm/node_modules/ci-info/index.js b/deps/npm/node_modules/ci-info/index.js
index 27794d49b3..9928fee9d3 100644
--- a/deps/npm/node_modules/ci-info/index.js
+++ b/deps/npm/node_modules/ci-info/index.js
@@ -4,7 +4,7 @@ var vendors = require('./vendors.json')
var env = process.env
-// Used for testinging only
+// Used for testing only
Object.defineProperty(exports, '_vendors', {
value: vendors.map(function (v) { return v.constant })
})
diff --git a/deps/npm/node_modules/ci-info/package.json b/deps/npm/node_modules/ci-info/package.json
index ac37a5fcc8..16e90c59a8 100644
--- a/deps/npm/node_modules/ci-info/package.json
+++ b/deps/npm/node_modules/ci-info/package.json
@@ -1,29 +1,28 @@
{
- "_from": "ci-info@1.6.0",
- "_id": "ci-info@1.6.0",
+ "_from": "ci-info@2.0.0",
+ "_id": "ci-info@2.0.0",
"_inBundle": false,
- "_integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==",
+ "_integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==",
"_location": "/ci-info",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
- "raw": "ci-info@1.6.0",
+ "raw": "ci-info@2.0.0",
"name": "ci-info",
"escapedName": "ci-info",
- "rawSpec": "1.6.0",
+ "rawSpec": "2.0.0",
"saveSpec": null,
- "fetchSpec": "1.6.0"
+ "fetchSpec": "2.0.0"
},
"_requiredBy": [
"#USER",
- "/",
- "/is-ci"
+ "/"
],
- "_resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz",
- "_shasum": "2ca20dbb9ceb32d4524a683303313f0304b1e497",
- "_spec": "ci-info@1.6.0",
- "_where": "/Users/zkat/Documents/code/work/npm",
+ "_resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz",
+ "_shasum": "67a9e964be31a51e15e5010d58e6f12834002f46",
+ "_spec": "ci-info@2.0.0",
+ "_where": "/Users/aeschright/code/cli",
"author": {
"name": "Thomas Watson Steen",
"email": "w@tson.dk",
@@ -34,8 +33,8 @@
},
"bundleDependencies": false,
"coordinates": [
- 55.778271,
- 12.593091
+ 55.778231,
+ 12.593179
],
"dependencies": {},
"deprecated": false,
@@ -63,5 +62,5 @@
"scripts": {
"test": "standard && node test.js"
},
- "version": "1.6.0"
+ "version": "2.0.0"
}
diff --git a/deps/npm/node_modules/ci-info/vendors.json b/deps/npm/node_modules/ci-info/vendors.json
index a157b78cea..266a724ab2 100644
--- a/deps/npm/node_modules/ci-info/vendors.json
+++ b/deps/npm/node_modules/ci-info/vendors.json
@@ -6,6 +6,12 @@
"pr": "APPVEYOR_PULL_REQUEST_NUMBER"
},
{
+ "name": "Azure Pipelines",
+ "constant": "AZURE_PIPELINES",
+ "env": "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI",
+ "pr": "SYSTEM_PULLREQUEST_PULLREQUESTID"
+ },
+ {
"name": "Bamboo",
"constant": "BAMBOO",
"env": "bamboo_planKey"
@@ -13,7 +19,8 @@
{
"name": "Bitbucket Pipelines",
"constant": "BITBUCKET",
- "env": "BITBUCKET_COMMIT"
+ "env": "BITBUCKET_COMMIT",
+ "pr": "BITBUCKET_PR_ID"
},
{
"name": "Bitrise",
@@ -93,6 +100,12 @@
"env": "MAGNUM"
},
{
+ "name": "Netlify CI",
+ "constant": "NETLIFY",
+ "env": "NETLIFY_BUILD_BASE",
+ "pr": { "env": "PULL_REQUEST", "ne": "false" }
+ },
+ {
"name": "Sail CI",
"constant": "SAIL",
"env": "SAILCI",
@@ -127,23 +140,11 @@
"env": ["TASK_ID", "RUN_ID"]
},
{
- "name": "Solano CI",
- "constant": "TDDIUM",
- "env": "TDDIUM",
- "pr": "TDDIUM_PR_ID",
- "deprecated": true
- },
- {
"name": "TeamCity",
"constant": "TEAMCITY",
"env": "TEAMCITY_VERSION"
},
{
- "name": "Team Foundation Server",
- "constant": "TFS",
- "env": "TF_BUILD"
- },
- {
"name": "Travis CI",
"constant": "TRAVIS",
"env": "TRAVIS",