index.d.ts 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // This file is generated at pre-commit by running `node create-typings.js`.
  2. /**
  3. * Returns a boolean. Will be `true` if the code is running on a CI server,
  4. * otherwise `false`.
  5. *
  6. * Some CI servers not listed here might still trigger the `ci.isCI`
  7. * boolean to be set to `true` if they use certain vendor neutral environment
  8. * variables. In those cases `ci.name` will be `null` and no vendor specific
  9. * boolean will be set to `true`.
  10. */
  11. export const isCI: boolean;
  12. /**
  13. * Returns a boolean if PR detection is supported for the current CI server.
  14. * Will be `true` if a PR is being tested, otherwise `false`. If PR detection is
  15. * not supported for the current CI server, the value will be `null`.
  16. */
  17. export const isPR: boolean | null;
  18. /**
  19. * Returns a string containing name of the CI server the code is running on. If
  20. * CI server is not detected, it returns `null`.
  21. *
  22. * Don't depend on the value of this string not to change for a specific vendor.
  23. * If you find your self writing `ci.name === 'Travis CI'`, you most likely want
  24. * to use `ci.TRAVIS` instead.
  25. */
  26. export const name: string | null;
  27. export const APPCIRCLE: boolean;
  28. export const APPVEYOR: boolean;
  29. export const CODEBUILD: boolean;
  30. export const AZURE_PIPELINES: boolean;
  31. export const BAMBOO: boolean;
  32. export const BITBUCKET: boolean;
  33. export const BITRISE: boolean;
  34. export const BUDDY: boolean;
  35. export const BUILDKITE: boolean;
  36. export const CIRCLE: boolean;
  37. export const CIRRUS: boolean;
  38. export const CODEFRESH: boolean;
  39. export const CODEMAGIC: boolean;
  40. export const CODESHIP: boolean;
  41. export const DRONE: boolean;
  42. export const DSARI: boolean;
  43. export const EAS: boolean;
  44. export const GITHUB_ACTIONS: boolean;
  45. export const GITLAB: boolean;
  46. export const GOCD: boolean;
  47. export const GOOGLE_CLOUD_BUILD: boolean;
  48. export const LAYERCI: boolean;
  49. export const GERRIT: boolean;
  50. export const HEROKU: boolean;
  51. export const HUDSON: boolean;
  52. export const JENKINS: boolean;
  53. export const MAGNUM: boolean;
  54. export const NETLIFY: boolean;
  55. export const NEVERCODE: boolean;
  56. export const RELEASEHUB: boolean;
  57. export const RENDER: boolean;
  58. export const SAIL: boolean;
  59. export const SCREWDRIVER: boolean;
  60. export const SEMAPHORE: boolean;
  61. export const SHIPPABLE: boolean;
  62. export const SOLANO: boolean;
  63. export const SOURCEHUT: boolean;
  64. export const STRIDER: boolean;
  65. export const TASKCLUSTER: boolean;
  66. export const TEAMCITY: boolean;
  67. export const TRAVIS: boolean;
  68. export const VERCEL: boolean;
  69. export const APPCENTER: boolean;
  70. export const WOODPECKER: boolean;
  71. export const XCODE_CLOUD: boolean;
  72. export const XCODE_SERVER: boolean;