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 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # is-ci
  2. Returns `true` if the current environment is a Continuous Integration
  3. server.
  4. Please [open an issue](https://github.com/watson/is-ci/issues) if your
  5. CI server isn't properly detected :)
  6. [![npm](https://img.shields.io/npm/v/is-ci.svg)](https://www.npmjs.com/package/is-ci)
  7. [![Tests](https://github.com/watson/is-ci/workflows/Tests/badge.svg)](https://github.com/watson/is-ci/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 is-ci --save
  12. ```
  13. ## Programmatic Usage
  14. ```js
  15. const isCI = require('is-ci')
  16. if (isCI) {
  17. console.log('The code is running on a CI server')
  18. }
  19. ```
  20. ## CLI Usage
  21. For CLI usage you need to have the `is-ci` executable in your `PATH`.
  22. There's a few ways to do that:
  23. - Either install the module globally using `npm install is-ci -g`
  24. - Or add the module as a dependency to your app in which case it can be
  25. used inside your package.json scripts as is
  26. - Or provide the full path to the executable, e.g.
  27. `./node_modules/.bin/is-ci`
  28. ```bash
  29. is-ci && echo "This is a CI server"
  30. ```
  31. ## Supported CI tools
  32. Refer to [ci-info](https://github.com/watson/ci-info#supported-ci-tools) docs for all supported CI's
  33. ## License
  34. [MIT](LICENSE)