is-ci

Detect if the current environment is a CI server

  • 所有者: watson/is-ci
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

is-ci

Returns true if the current environment is a Continuous Integration
server.

Please open an issue if your
CI server isn't properly detected :)

npm
Build status
js-standard-style

Installation

npm install is-ci --save

Programmatic Usage

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
is-ci && echo "This is a CI server"

Supported CI tools

Refer to ci-info docs for all supported CI's

License

MIT

主要指标

概览
名称与所有者watson/is-ci
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2015-10-07 23:37:23
推送于2024-12-08 08:22:17
最后一次提交2024-12-08 13:51:59
发布数19
最新版本名称v4.1.0 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数392
关注者数6
派生数17
提交数86
已启用问题?
问题数9
打开的问题数0
拉请求数12
打开的拉请求数0
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?