graphql-engine/server/lib/ci-info
kodiakhq[bot] 61fe468d47 GHC 9.10.1
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/10944
GitOrigin-RevId: f7e98c510a0f866f98fd43b7b1c10e5fe730e61f
2024-08-13 13:41:16 +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 GHC 9.10.1 2024-08-13 13:41:16 +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)