graphql-engine/server/lib/ci-info
rikinsk 8a61802ca0 Merge branch 'main' into stable
GitOrigin-RevId: 3f6efeda389647b2fd7817b15e2952f3a562dbd5
2023-06-08 14:06:50 +00:00
..
res Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
src Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
.gitignore Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
cabal.project.freeze Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
ci-info.cabal Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
LICENSE Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
package.yaml Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
README.md Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
Setup.hs Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00
stack.yaml Merge branch 'main' into stable 2023-06-08 14:06:50 +00:00

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)