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 | */
|
---|
12 | export 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 | */
|
---|
18 | export 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 | */
|
---|
27 | export const name: string | null;
|
---|
28 |
|
---|
29 | export const APPCIRCLE: boolean;
|
---|
30 | export const APPVEYOR: boolean;
|
---|
31 | export const CODEBUILD: boolean;
|
---|
32 | export const AZURE_PIPELINES: boolean;
|
---|
33 | export const BAMBOO: boolean;
|
---|
34 | export const BITBUCKET: boolean;
|
---|
35 | export const BITRISE: boolean;
|
---|
36 | export const BUDDY: boolean;
|
---|
37 | export const BUILDKITE: boolean;
|
---|
38 | export const CIRCLE: boolean;
|
---|
39 | export const CIRRUS: boolean;
|
---|
40 | export const CODEFRESH: boolean;
|
---|
41 | export const CODEMAGIC: boolean;
|
---|
42 | export const CODESHIP: boolean;
|
---|
43 | export const DRONE: boolean;
|
---|
44 | export const DSARI: boolean;
|
---|
45 | export const EAS: boolean;
|
---|
46 | export const GERRIT: boolean;
|
---|
47 | export const GITHUB_ACTIONS: boolean;
|
---|
48 | export const GITLAB: boolean;
|
---|
49 | export const GOCD: boolean;
|
---|
50 | export const GOOGLE_CLOUD_BUILD: boolean;
|
---|
51 | export const HARNESS: boolean;
|
---|
52 | export const HEROKU: boolean;
|
---|
53 | export const HUDSON: boolean;
|
---|
54 | export const JENKINS: boolean;
|
---|
55 | export const LAYERCI: boolean;
|
---|
56 | export const MAGNUM: boolean;
|
---|
57 | export const NETLIFY: boolean;
|
---|
58 | export const NEVERCODE: boolean;
|
---|
59 | export const RELEASEHUB: boolean;
|
---|
60 | export const RENDER: boolean;
|
---|
61 | export const SAIL: boolean;
|
---|
62 | export const SCREWDRIVER: boolean;
|
---|
63 | export const SEMAPHORE: boolean;
|
---|
64 | export const SHIPPABLE: boolean;
|
---|
65 | export const SOLANO: boolean;
|
---|
66 | export const SOURCEHUT: boolean;
|
---|
67 | export const STRIDER: boolean;
|
---|
68 | export const TASKCLUSTER: boolean;
|
---|
69 | export const TEAMCITY: boolean;
|
---|
70 | export const TRAVIS: boolean;
|
---|
71 | export const VERCEL: boolean;
|
---|
72 | export const APPCENTER: boolean;
|
---|
73 | export const WOODPECKER: boolean;
|
---|
74 | export const XCODE_CLOUD: boolean;
|
---|
75 | export const XCODE_SERVER: boolean;
|
---|