diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-20 02:56:13 +0200 |
commit | bbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch) | |
tree | c58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/is-ci | |
parent | 003fb34971cf63466184351b4db5f7c67df4f444 (diff) |
update packages
Diffstat (limited to 'node_modules/is-ci')
-rw-r--r-- | node_modules/is-ci/.npmignore | 1 | ||||
-rw-r--r-- | node_modules/is-ci/.travis.yml | 7 | ||||
-rw-r--r-- | node_modules/is-ci/LICENSE | 2 | ||||
-rw-r--r-- | node_modules/is-ci/README.md | 46 | ||||
-rw-r--r-- | node_modules/is-ci/package.json | 13 | ||||
-rw-r--r-- | node_modules/is-ci/test.js | 17 |
6 files changed, 29 insertions, 57 deletions
diff --git a/node_modules/is-ci/.npmignore b/node_modules/is-ci/.npmignore deleted file mode 100644 index 3c3629e64..000000000 --- a/node_modules/is-ci/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/is-ci/.travis.yml b/node_modules/is-ci/.travis.yml deleted file mode 100644 index 21f721050..000000000 --- a/node_modules/is-ci/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: node_js -node_js: -- '6' -- '5' -- '4' -- '0.12' -- '0.10' diff --git a/node_modules/is-ci/LICENSE b/node_modules/is-ci/LICENSE index 95f61daaa..67846832e 100644 --- a/node_modules/is-ci/LICENSE +++ b/node_modules/is-ci/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Thomas Watson Steen +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 diff --git a/node_modules/is-ci/README.md b/node_modules/is-ci/README.md index cf37a7a3d..bc3840a22 100644 --- a/node_modules/is-ci/README.md +++ b/node_modules/is-ci/README.md @@ -6,49 +6,45 @@ server. Please [open an issue](https://github.com/watson/is-ci/issues) if your CI server isn't properly detected :) +[](https://www.npmjs.com/package/is-ci) [](https://travis-ci.org/watson/is-ci) [](https://github.com/feross/standard) ## Installation -``` +```bash npm install is-ci --save ``` -## Usage +## Programmatic Usage ```js -var isCI = require('is-ci') +const isCI = require('is-ci') if (isCI) { console.log('The code is running on a CI server') } ``` +## CLI Usage + +For CLI usage you need to have the `is-ci` executable in your `PATH`. +There's a few ways to do that: + +- Either install the module globally using `npm install is-ci -g` +- Or add the module as a dependency to your app in which case it can be + used inside your package.json scripts as is +- Or provide the full path to the executable, e.g. + `./node_modules/.bin/is-ci` + +```bash +is-ci && echo "This is a CI server" +``` + ## Supported CI tools -Officially supported CI servers: - -- [Travis CI](http://travis-ci.org) -- [CircleCI](http://circleci.com) -- [Jenkins CI](https://jenkins-ci.org) -- [Hudson](http://hudson-ci.org) -- [Bamboo](https://www.atlassian.com/software/bamboo) -- [TeamCity](https://www.jetbrains.com/teamcity/) -- [Team Foundation Server](https://www.visualstudio.com/en-us/products/tfs-overview-vs.aspx) -- [GitLab CI](https://about.gitlab.com/gitlab-ci/) -- [Codeship](https://codeship.com) -- [Drone.io](https://drone.io) -- [Magnum CI](https://magnum-ci.com) -- [Semaphore](https://semaphoreci.com) -- [AppVeyor](http://www.appveyor.com) -- [Buildkite](https://buildkite.com) -- [TaskCluster](http://docs.taskcluster.net) -- [GoCD](https://www.go.cd/) -- [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) - -Other CI tools using environment variables like `BUILD_ID` or `CI` would be detected as well. +Refer to [ci-info](https://github.com/watson/ci-info#supported-ci-tools) docs for all supported CI's ## License -MIT +[MIT](LICENSE) diff --git a/node_modules/is-ci/package.json b/node_modules/is-ci/package.json index 9b4b4f7ee..2d567b010 100644 --- a/node_modules/is-ci/package.json +++ b/node_modules/is-ci/package.json @@ -1,14 +1,15 @@ { "name": "is-ci", - "version": "1.0.10", - "description": "Detect if your code is running on a CI server", + "version": "1.2.1", + "description": "Detect if the current environment is a CI server", + "bin": "bin.js", "main": "index.js", "dependencies": { - "ci-info": "^1.0.0" + "ci-info": "^1.5.0" }, "devDependencies": { "clear-require": "^1.0.1", - "standard": "^5.3.1" + "standard": "^11.0.1" }, "scripts": { "test": "standard && node test.js" @@ -31,7 +32,7 @@ }, "homepage": "https://github.com/watson/is-ci", "coordinates": [ - 55.6876732, - 12.5955341 + 55.778255, + 12.593033 ] } diff --git a/node_modules/is-ci/test.js b/node_modules/is-ci/test.js deleted file mode 100644 index 5ccd6c2d5..000000000 --- a/node_modules/is-ci/test.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict' - -var assert = require('assert') -var clearRequire = require('clear-require') - -if (!process.env.TRAVIS) process.env.CI = 'true' - -var isCI = require('./') -assert(isCI) - -delete process.env.CI -delete process.env.CONTINUOUS_INTEGRATION - -clearRequire('./') -clearRequire('ci-info') -isCI = require('./') -assert(!isCI) |