UNPKG

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