mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
61fe468d47
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10944 GitOrigin-RevId: f7e98c510a0f866f98fd43b7b1c10e5fe730e61f |
||
---|---|---|
.. | ||
res | ||
src | ||
.gitignore | ||
cabal.project.freeze | ||
ci-info.cabal | ||
LICENSE | ||
package.yaml | ||
README.md | ||
Setup.hs | ||
stack.yaml |
ci-info-hs
Checks if the current environment is a Continuous Integration server.
This is a Haskell port of watson/ci-info.
Usage
Check if the current environment is a CI server:
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:
getCI :: IO (Maybe CI)