graphql-engine/server/lib/ci-info
kodiakhq[bot] 34e172d576 chore(tooling): import ci-info-hs into monorepo
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9383
Co-authored-by: Shahidh K Muhammed <4124733+shahidhk@users.noreply.github.com>
Co-authored-by: Ajeet D'Souza <1777663+ajeetdsouza@users.noreply.github.com>
Co-authored-by: Brandon Simmons <210815+jberryman@users.noreply.github.com>
Co-authored-by: Vamshi Surabhi <6562944+0x777@users.noreply.github.com>
Co-authored-by: Auke Booij <164426+abooij@users.noreply.github.com>
Co-authored-by: Matthew Pickering <1216657+mpickering@users.noreply.github.com>
Co-authored-by: Antoine Leblanc <1618949+nicuveo@users.noreply.github.com>
GitOrigin-RevId: a7a210e2237f5adc63302b18403616c7c0aa39ca
2023-06-01 12:51:39 +00:00
..
res chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +00:00
src chore(tooling): import ci-info-hs into monorepo 2023-06-01 12:51:39 +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)