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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?