CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
README.md136 linesDownload Raw Back to ci-info
1# ci-info2 3Get details about the current Continuous Integration environment.4 5Please [open an6issue](https://github.com/watson/ci-info/issues/new?template=ci-server-not-detected.md)7if your CI server isn't properly detected :)8 9[![npm](https://img.shields.io/npm/v/ci-info.svg)](https://www.npmjs.com/package/ci-info)10[![Tests](https://github.com/watson/ci-info/workflows/Tests/badge.svg)](https://github.com/watson/ci-info/actions)11[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)12 13## Installation14 15```bash16npm install ci-info --save17```18 19## Usage20 21```js22var ci = require('ci-info')23 24if (ci.isCI) {25  console.log('The name of the CI server is:', ci.name)26} else {27  console.log('This program is not running on a CI server')28}29```30 31## Supported CI tools32 33Officially supported CI servers:34 35| Name                                                                            | Constant                | isPR |36| ------------------------------------------------------------------------------- | ----------------------- | ---- |37| [AWS CodeBuild](https://aws.amazon.com/codebuild/)                              | `ci.CODEBUILD`          | ๐Ÿšซ   |38| [AppVeyor](http://www.appveyor.com)                                             | `ci.APPVEYOR`           | โœ…   |39| [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) | `ci.AZURE_PIPELINES`    | โœ…   |40| [Appcircle](https://appcircle.io/)                                              | `ci.APPCIRCLE`          | ๐Ÿšซ   |41| [Bamboo](https://www.atlassian.com/software/bamboo) by Atlassian                | `ci.BAMBOO`             | ๐Ÿšซ   |42| [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines)         | `ci.BITBUCKET`          | โœ…   |43| [Bitrise](https://www.bitrise.io/)                                              | `ci.BITRISE`            | โœ…   |44| [Buddy](https://buddy.works/)                                                   | `ci.BUDDY`              | โœ…   |45| [Buildkite](https://buildkite.com)                                              | `ci.BUILDKITE`          | โœ…   |46| [CircleCI](http://circleci.com)                                                 | `ci.CIRCLE`             | โœ…   |47| [Cirrus CI](https://cirrus-ci.org)                                              | `ci.CIRRUS`             | โœ…   |48| [Codefresh](https://codefresh.io/)                                              | `ci.CODEFRESH`          | โœ…   |49| [Codeship](https://codeship.com)                                                | `ci.CODESHIP`           | ๐Ÿšซ   |50| [Drone](https://drone.io)                                                       | `ci.DRONE`              | โœ…   |51| [dsari](https://github.com/rfinnie/dsari)                                       | `ci.DSARI`              | ๐Ÿšซ   |52| [Expo Application Services](https://expo.dev/eas)                               | `ci.EAS`                | ๐Ÿšซ   |53| [Gerrit CI](https://www.gerritcodereview.com)                                   | `ci.GERRIT`             | ๐Ÿšซ   |54| [GitHub Actions](https://github.com/features/actions/)                          | `ci.GITHUB_ACTIONS`     | โœ…   |55| [GitLab CI](https://about.gitlab.com/gitlab-ci/)                                | `ci.GITLAB`             | โœ…   |56| [GoCD](https://www.go.cd/)                                                      | `ci.GOCD`               | ๐Ÿšซ   |57| [Google Cloud Build](https://cloud.google.com/build)                            | `ci.GOOGLE_CLOUD_BUILD` | ๐Ÿšซ   |58| [Harness CI](https://www.harness.io/products/continuous-integration)            | `ci.HARNESS`            | ๐Ÿšซ   |59| [Heroku](https://www.heroku.com)                                                | `ci.HEROKU`             | ๐Ÿšซ   |60| [Hudson](http://hudson-ci.org)                                                  | `ci.HUDSON`             | ๐Ÿšซ   |61| [Jenkins CI](https://jenkins-ci.org)                                            | `ci.JENKINS`            | โœ…   |62| [LayerCI](https://layerci.com/)                                                 | `ci.LAYERCI`            | โœ…   |63| [Magnum CI](https://magnum-ci.com)                                              | `ci.MAGNUM`             | ๐Ÿšซ   |64| [Netlify CI](https://www.netlify.com/)                                          | `ci.NETLIFY`            | โœ…   |65| [Nevercode](http://nevercode.io/)                                               | `ci.NEVERCODE`          | โœ…   |66| [ReleaseHub](https://releasehub.com/)                                           | `ci.RELEASEHUB`         | ๐Ÿšซ   |67| [Render](https://render.com/)                                                   | `ci.RENDER`             | โœ…   |68| [Sail CI](https://sail.ci/)                                                     | `ci.SAIL`               | โœ…   |69| [Screwdriver](https://screwdriver.cd/)                                          | `ci.SCREWDRIVER`        | โœ…   |70| [Semaphore](https://semaphoreci.com)                                            | `ci.SEMAPHORE`          | โœ…   |71| [Shippable](https://www.shippable.com/)                                         | `ci.SHIPPABLE`          | โœ…   |72| [Solano CI](https://www.solanolabs.com/)                                        | `ci.SOLANO`             | โœ…   |73| [Sourcehut](https://sourcehut.org/)                                             | `ci.SOURCEHUT`          | ๐Ÿšซ   |74| [Strider CD](https://strider-cd.github.io/)                                     | `ci.STRIDER`            | ๐Ÿšซ   |75| [TaskCluster](http://docs.taskcluster.net)                                      | `ci.TASKCLUSTER`        | ๐Ÿšซ   |76| [TeamCity](https://www.jetbrains.com/teamcity/) by JetBrains                    | `ci.TEAMCITY`           | ๐Ÿšซ   |77| [Travis CI](http://travis-ci.org)                                               | `ci.TRAVIS`             | โœ…   |78| [Vercel](https://vercel.com/)                                                   | `ci.VERCEL`             | โœ…   |79| [Visual Studio App Center](https://appcenter.ms/)                               | `ci.APPCENTER`          | ๐Ÿšซ   |80| [Woodpecker](https://woodpecker-ci.org/)                                        | `ci.WOODPECKER`         | โœ…   |81 82## API83 84### `ci.name`85 86Returns a string containing name of the CI server the code is running on.87If CI server is not detected, it returns `null`.88 89Don't depend on the value of this string not to change for a specific90vendor. If you find your self writing `ci.name === 'Travis CI'`, you91most likely want to use `ci.TRAVIS` instead.92 93### `ci.isCI`94 95Returns a boolean. Will be `true` if the code is running on a CI server,96otherwise `false`.97 98Some CI servers not listed here might still trigger the `ci.isCI`99boolean to be set to `true` if they use certain vendor neutral100environment variables. In those cases `ci.name` will be `null` and no101vendor specific boolean will be set to `true`.102 103### `ci.isPR`104 105Returns a boolean if PR detection is supported for the current CI server. Will106be `true` if a PR is being tested, otherwise `false`. If PR detection is107not supported for the current CI server, the value will be `null`.108 109### `ci.<VENDOR-CONSTANT>`110 111A vendor specific boolean constant is exposed for each support CI112vendor. A constant will be `true` if the code is determined to run on113the given CI server, otherwise `false`.114 115Examples of vendor constants are `ci.TRAVIS` or `ci.APPVEYOR`. For a116complete list, see the support table above.117 118Deprecated vendor constants that will be removed in the next major119release:120 121- `ci.TDDIUM` (Solano CI) This have been renamed `ci.SOLANO`122 123## Ports124 125ci-info has been ported to the following languages126 127| Language | Repository |128|----------|------------|129| Go       | https://github.com/hofstadter-io/cinful |130| Rust     | https://github.com/sagiegurari/ci_info |131| Kotlin   | https://github.com/cloudflightio/ci-info |132 133## License134 135[MIT](LICENSE)136 
basant307/AI_Governance_Project ยท CoolFace