diff options
Diffstat (limited to 'node_modules/ci-info')
| -rw-r--r-- | node_modules/ci-info/LICENSE | 21 | ||||
| -rw-r--r-- | node_modules/ci-info/README.md | 104 | ||||
| -rw-r--r-- | node_modules/ci-info/index.js | 56 | ||||
| -rw-r--r-- | node_modules/ci-info/package.json | 36 |
4 files changed, 0 insertions, 217 deletions
diff --git a/node_modules/ci-info/LICENSE b/node_modules/ci-info/LICENSE deleted file mode 100644 index 67846832e..000000000 --- a/node_modules/ci-info/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016-2018 Thomas Watson Steen - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/ci-info/README.md b/node_modules/ci-info/README.md deleted file mode 100644 index b3f677ddc..000000000 --- a/node_modules/ci-info/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# ci-info - -Get details about the current Continuous Integration environment. - -Please [open an -issue](https://github.com/watson/ci-info/issues/new?template=ci-server-not-detected.md) -if your CI server isn't properly detected :) - -[](https://www.npmjs.com/package/ci-info) -[](https://travis-ci.org/watson/ci-info) -[](https://github.com/feross/standard) - -## Installation - -```bash -npm install ci-info --save -``` - -## Usage - -```js -var ci = require('ci-info') - -if (ci.isCI) { - console.log('The name of the CI server is:', ci.name) -} else { - console.log('This program is not running on a CI server') -} -``` - -## Supported CI tools - -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` | -| [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` | -| [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` | - -## 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`. - -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 -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`. - -Some CI servers not listed here might still trigger the `ci.isCI` -boolean to be set to `true` if they use certain vendor neutral -environment variables. In those cases `ci.name` will be `null` and no -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 -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 -vendor. A constant will be `true` if the code is determined to run on -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. - -Deprecated vendor constants that will be removed in the next major -release: - -- `ci.TDDIUM` (Solano CI) This have been renamed `ci.SOLANO` - -## License - -[MIT](LICENSE) diff --git a/node_modules/ci-info/index.js b/node_modules/ci-info/index.js deleted file mode 100644 index 7f742f4ed..000000000 --- a/node_modules/ci-info/index.js +++ /dev/null @@ -1,56 +0,0 @@ -'use strict' - -var vendors = require('./vendors.json') - -var env = process.env - -// Used for testinging only -Object.defineProperty(exports, '_vendors', { - value: vendors.map(function (v) { return v.constant }) -}) - -exports.name = null -exports.isPR = null - -vendors.forEach(function (vendor) { - var envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env] - var isCI = envs.every(function (obj) { - if (typeof obj === 'string') return !!env[obj] - return Object.keys(obj).every(function (k) { - return env[k] === obj[k] - }) - }) - - exports[vendor.constant] = isCI - - if (isCI) { - exports.name = vendor.name - - if (vendor.pr) { - var val = env[vendor.pr.env] - if (val) { - switch (vendor.pr.type) { - case 'not-false': - exports.isPR = val !== 'false' - break - case 'boolean': - exports.isPR = val === 'true' - break - default: - exports.isPR = true - } - } else { - exports.isPR = false - } - } - } -}) - -exports.isCI = !!( - env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari - env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI - env.BUILD_NUMBER || // Jenkins, TeamCity - env.RUN_ID || // TaskCluster, dsari - exports.name || - false -) diff --git a/node_modules/ci-info/package.json b/node_modules/ci-info/package.json deleted file mode 100644 index 6a45f9414..000000000 --- a/node_modules/ci-info/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "ci-info", - "version": "1.5.1", - "description": "Get details about the current Continuous Integration environment", - "main": "index.js", - "dependencies": {}, - "devDependencies": { - "clear-require": "^1.0.1", - "standard": "^12.0.1", - "tape": "^4.9.1" - }, - "scripts": { - "test": "standard && node test.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/watson/ci-info.git" - }, - "keywords": [ - "ci", - "continuous", - "integration", - "test", - "detect" - ], - "author": "Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)", - "license": "MIT", - "bugs": { - "url": "https://github.com/watson/ci-info/issues" - }, - "homepage": "https://github.com/watson/ci-info", - "coordinates": [ - 55.778273, - 12.593054 - ] -} |
