Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. # ci-info
  2. Get details about the current Continuous Integration environment.
  3. Please [open an
  4. issue](https://github.com/watson/ci-info/issues/new?template=ci-server-not-detected.md)
  5. if your CI server isn't properly detected :)
  6. [![npm](https://img.shields.io/npm/v/ci-info.svg)](https://www.npmjs.com/package/ci-info)
  7. [![Tests](https://github.com/watson/ci-info/workflows/Tests/badge.svg)](https://github.com/watson/ci-info/actions)
  8. [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
  9. ## Installation
  10. ```bash
  11. npm install ci-info --save
  12. ```
  13. ## Usage
  14. ```js
  15. var ci = require('ci-info')
  16. if (ci.isCI) {
  17. console.log('The name of the CI server is:', ci.name)
  18. } else {
  19. console.log('This program is not running on a CI server')
  20. }
  21. ```
  22. ## Supported CI tools
  23. Officially supported CI servers:
  24. | Name | Constant | isPR |
  25. | ------------------------------------------------------------------------------- | -------------------- | ---- |
  26. | [AWS CodeBuild](https://aws.amazon.com/codebuild/) | `ci.CODEBUILD` | 🚫 |
  27. | [AppVeyor](http://www.appveyor.com) | `ci.APPVEYOR` | ✅ |
  28. | [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) | `ci.AZURE_PIPELINES` | ✅ |
  29. | [Appcircle](https://appcircle.io/) | `ci.APPCIRCLE` | 🚫 |
  30. | [Bamboo](https://www.atlassian.com/software/bamboo) by Atlassian | `ci.BAMBOO` | 🚫 |
  31. | [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) | `ci.BITBUCKET` | ✅ |
  32. | [Bitrise](https://www.bitrise.io/) | `ci.BITRISE` | ✅ |
  33. | [Buddy](https://buddy.works/) | `ci.BUDDY` | ✅ |
  34. | [Buildkite](https://buildkite.com) | `ci.BUILDKITE` | ✅ |
  35. | [CircleCI](http://circleci.com) | `ci.CIRCLE` | ✅ |
  36. | [Cirrus CI](https://cirrus-ci.org) | `ci.CIRRUS` | ✅ |
  37. | [Codefresh](https://codefresh.io/) | `ci.CODEFRESH` | ✅ |
  38. | [Codeship](https://codeship.com) | `ci.CODESHIP` | 🚫 |
  39. | [Drone](https://drone.io) | `ci.DRONE` | ✅ |
  40. | [dsari](https://github.com/rfinnie/dsari) | `ci.DSARI` | 🚫 |
  41. | [GitHub Actions](https://github.com/features/actions/) | `ci.GITHUB_ACTIONS` | ✅ |
  42. | [GitLab CI](https://about.gitlab.com/gitlab-ci/) | `ci.GITLAB` | ✅ |
  43. | [GoCD](https://www.go.cd/) | `ci.GOCD` | 🚫 |
  44. | [Hudson](http://hudson-ci.org) | `ci.HUDSON` | 🚫 |
  45. | [Jenkins CI](https://jenkins-ci.org) | `ci.JENKINS` | ✅ |
  46. | [LayerCI](https://layerci.com/) | `ci.LAYERCI` | ✅ |
  47. | [Magnum CI](https://magnum-ci.com) | `ci.MAGNUM` | 🚫 |
  48. | [Netlify CI](https://www.netlify.com/) | `ci.NETLIFY` | ✅ |
  49. | [Nevercode](http://nevercode.io/) | `ci.NEVERCODE` | ✅ |
  50. | [Render](https://render.com/) | `ci.RENDER` | ✅ |
  51. | [Sail CI](https://sail.ci/) | `ci.SAIL` | ✅ |
  52. | [Screwdriver](https://screwdriver.cd/) | `ci.SCREWDRIVER` | ✅ |
  53. | [Semaphore](https://semaphoreci.com) | `ci.SEMAPHORE` | ✅ |
  54. | [Shippable](https://www.shippable.com/) | `ci.SHIPPABLE` | ✅ |
  55. | [Solano CI](https://www.solanolabs.com/) | `ci.SOLANO` | ✅ |
  56. | [Strider CD](https://strider-cd.github.io/) | `ci.STRIDER` | 🚫 |
  57. | [TaskCluster](http://docs.taskcluster.net) | `ci.TASKCLUSTER` | 🚫 |
  58. | [TeamCity](https://www.jetbrains.com/teamcity/) by JetBrains | `ci.TEAMCITY` | 🚫 |
  59. | [Travis CI](http://travis-ci.org) | `ci.TRAVIS` | ✅ |
  60. | [Vercel](https://vercel.com/) | `ci.VERCEL` | 🚫 |
  61. | [Visual Studio App Center](https://appcenter.ms/) | `ci.APPCENTER` | 🚫 |
  62. ## API
  63. ### `ci.name`
  64. Returns a string containing name of the CI server the code is running on.
  65. If CI server is not detected, it returns `null`.
  66. Don't depend on the value of this string not to change for a specific
  67. vendor. If you find your self writing `ci.name === 'Travis CI'`, you
  68. most likely want to use `ci.TRAVIS` instead.
  69. ### `ci.isCI`
  70. Returns a boolean. Will be `true` if the code is running on a CI server,
  71. otherwise `false`.
  72. Some CI servers not listed here might still trigger the `ci.isCI`
  73. boolean to be set to `true` if they use certain vendor neutral
  74. environment variables. In those cases `ci.name` will be `null` and no
  75. vendor specific boolean will be set to `true`.
  76. ### `ci.isPR`
  77. Returns a boolean if PR detection is supported for the current CI server. Will
  78. be `true` if a PR is being tested, otherwise `false`. If PR detection is
  79. not supported for the current CI server, the value will be `null`.
  80. ### `ci.<VENDOR-CONSTANT>`
  81. A vendor specific boolean constant is exposed for each support CI
  82. vendor. A constant will be `true` if the code is determined to run on
  83. the given CI server, otherwise `false`.
  84. Examples of vendor constants are `ci.TRAVIS` or `ci.APPVEYOR`. For a
  85. complete list, see the support table above.
  86. Deprecated vendor constants that will be removed in the next major
  87. release:
  88. - `ci.TDDIUM` (Solano CI) This have been renamed `ci.SOLANO`
  89. ## License
  90. [MIT](LICENSE)