graphql-engine/server/lib/ci-info
Daniel Harvey be252cddf7 chore(ci-info): fix various compiler warnings
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9461
GitOrigin-RevId: 2160bd10c5464fad34bb5b9057beaa718c58a2ae
2023-06-08 12:25:22 +00:00
..
res chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
src chore(ci-info): fix various compiler warnings 2023-06-08 12:25:22 +00:00
.gitignore chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
cabal.project.freeze chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
ci-info.cabal chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
LICENSE chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
package.yaml chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
README.md chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
Setup.hs chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
stack.yaml chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +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)