mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-20 14:01:39 +03:00
20 lines
473 B
Markdown
20 lines
473 B
Markdown
|
# ci-info-hs
|
||
|
|
||
|
Checks if the current environment is a Continuous Integration server.
|
||
|
|
||
|
This is a Haskell port of [watson/ci-info](https://github.com/watson/ci-info).
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
Check if the current environment is a CI server:
|
||
|
|
||
|
```haskell
|
||
|
isCI :: IO Bool
|
||
|
```
|
||
|
|
||
|
Get the name of the CI vendor. Returns `Nothing` if no CI could be detected. Returns `Just CI_UNKNOWN_VENDOR` if a CI was detected, but the vendor name could not be determined:
|
||
|
|
||
|
```haskell
|
||
|
getCI :: IO (Maybe CI)
|
||
|
```
|