Add Robot_JoyIt driver
This commit is contained in:
32
node_modules/ci-info/CHANGELOG.md
generated
vendored
32
node_modules/ci-info/CHANGELOG.md
generated
vendored
@@ -1,5 +1,37 @@
|
||||
# Changelog
|
||||
|
||||
## v4.3.1
|
||||
|
||||
- don't read envs when CI is set to `false` [3fae1ac](https://github.com/watson/ci-info/commit/3fae1ac)
|
||||
|
||||
## v4.3.0
|
||||
|
||||
- support Cloudflare workers [e438266](https://github.com/watson/ci-info/commit/e438266)
|
||||
|
||||
## v4.2.0
|
||||
|
||||
- support Cloudflare Pages [75c9de8](https://github.com/watson/ci-info/commit/75c9de8)
|
||||
|
||||
### v4.1.0
|
||||
|
||||
- support Appcircle PR [1d42c26](https://github.com/watson/ci-info/commit/1d42c26)
|
||||
- support AWS CodeBuild PR [e6fcdd2](https://github.com/watson/ci-info/commit/e6fcdd2)
|
||||
- add `ci.id` to return vendor constant [81fd993](https://github.com/watson/ci-info/commit/81fd993)
|
||||
|
||||
## v4.0.0
|
||||
|
||||
- support Earthly CI [fb8bd85](https://github.com/watson/ci-info/commit/fb8bd85)
|
||||
- support Prow CI [8e6a591](https://github.com/watson/ci-info/commit/8e6a591)
|
||||
- support Vela CI [bb13901](https://github.com/watson/ci-info/commit/bb13901)
|
||||
- support Agola CI [ec4e149](https://github.com/watson/ci-info/commit/ec4e149)
|
||||
- support Gitea Actions [f6f173f](https://github.com/watson/ci-info/commit/f6f173f)
|
||||
- run tests on nodejs v20 [bff314d](https://github.com/watson/ci-info/commit/bff314d)
|
||||
|
||||
#### Breaking Changes
|
||||
|
||||
- remove Shippable CI [2c5571a](https://github.com/watson/ci-info/commit/2c5571a)
|
||||
- remove Solano CI [d6315fc](https://github.com/watson/ci-info/commit/d6315fc)
|
||||
|
||||
## v3.9.0
|
||||
|
||||
- better support for Azure Pipelines ([#116](https://github.com/watson/ci-info/pull/116)), [5ea8d85](https://github.com/watson/ci-info/commit/5ea8d85)
|
||||
|
||||
18
node_modules/ci-info/README.md
generated
vendored
18
node_modules/ci-info/README.md
generated
vendored
@@ -34,10 +34,11 @@ Officially supported CI servers:
|
||||
|
||||
| Name | Constant | isPR |
|
||||
| ------------------------------------------------------------------------------- | ----------------------- | ---- |
|
||||
| [AWS CodeBuild](https://aws.amazon.com/codebuild/) | `ci.CODEBUILD` | 🚫 |
|
||||
| [Agola CI](https://agola.io/) | `ci.AGOLA` | ✅ |
|
||||
| [Appcircle](https://appcircle.io/) | `ci.APPCIRCLE` | ✅ |
|
||||
| [AppVeyor](http://www.appveyor.com) | `ci.APPVEYOR` | ✅ |
|
||||
| [AWS CodeBuild](https://aws.amazon.com/codebuild/) | `ci.CODEBUILD` | ✅ |
|
||||
| [Azure Pipelines](https://azure.microsoft.com/en-us/services/devops/pipelines/) | `ci.AZURE_PIPELINES` | ✅ |
|
||||
| [Appcircle](https://appcircle.io/) | `ci.APPCIRCLE` | 🚫 |
|
||||
| [Bamboo](https://www.atlassian.com/software/bamboo) by Atlassian | `ci.BAMBOO` | 🚫 |
|
||||
| [Bitbucket Pipelines](https://bitbucket.org/product/features/pipelines) | `ci.BITBUCKET` | ✅ |
|
||||
| [Bitrise](https://www.bitrise.io/) | `ci.BITRISE` | ✅ |
|
||||
@@ -45,14 +46,18 @@ Officially supported CI servers:
|
||||
| [Buildkite](https://buildkite.com) | `ci.BUILDKITE` | ✅ |
|
||||
| [CircleCI](http://circleci.com) | `ci.CIRCLE` | ✅ |
|
||||
| [Cirrus CI](https://cirrus-ci.org) | `ci.CIRRUS` | ✅ |
|
||||
| [Cloudflare Pages](https://pages.cloudflare.com/) | `ci.CLOUDFLARE_PAGES` | 🚫 |
|
||||
| [Cloudflare Workers](https://pages.cloudflare.com/) | `ci.CLOUDFLARE_WORKERS` | 🚫 |
|
||||
| [Codefresh](https://codefresh.io/) | `ci.CODEFRESH` | ✅ |
|
||||
| [Codeship](https://codeship.com) | `ci.CODESHIP` | 🚫 |
|
||||
| [Drone](https://drone.io) | `ci.DRONE` | ✅ |
|
||||
| [dsari](https://github.com/rfinnie/dsari) | `ci.DSARI` | 🚫 |
|
||||
| [Earthly CI](https://earthly.dev/) | `ci.EARTHLY` | 🚫 |
|
||||
| [Expo Application Services](https://expo.dev/eas) | `ci.EAS` | 🚫 |
|
||||
| [Gerrit CI](https://www.gerritcodereview.com) | `ci.GERRIT` | 🚫 |
|
||||
| [GitHub Actions](https://github.com/features/actions/) | `ci.GITHUB_ACTIONS` | ✅ |
|
||||
| [GitLab CI](https://about.gitlab.com/gitlab-ci/) | `ci.GITLAB` | ✅ |
|
||||
| [Gitea Actions](https://about.gitea.com/) | `ci.GITEA_ACTIONS` | 🚫 |
|
||||
| [GoCD](https://www.go.cd/) | `ci.GOCD` | 🚫 |
|
||||
| [Google Cloud Build](https://cloud.google.com/build) | `ci.GOOGLE_CLOUD_BUILD` | 🚫 |
|
||||
| [Harness CI](https://www.harness.io/products/continuous-integration) | `ci.HARNESS` | 🚫 |
|
||||
@@ -63,18 +68,18 @@ Officially supported CI servers:
|
||||
| [Magnum CI](https://magnum-ci.com) | `ci.MAGNUM` | 🚫 |
|
||||
| [Netlify CI](https://www.netlify.com/) | `ci.NETLIFY` | ✅ |
|
||||
| [Nevercode](http://nevercode.io/) | `ci.NEVERCODE` | ✅ |
|
||||
| [Prow](https://docs.prow.k8s.io/) | `ci.PROW` | 🚫 |
|
||||
| [ReleaseHub](https://releasehub.com/) | `ci.RELEASEHUB` | 🚫 |
|
||||
| [Render](https://render.com/) | `ci.RENDER` | ✅ |
|
||||
| [Sail CI](https://sail.ci/) | `ci.SAIL` | ✅ |
|
||||
| [Screwdriver](https://screwdriver.cd/) | `ci.SCREWDRIVER` | ✅ |
|
||||
| [Semaphore](https://semaphoreci.com) | `ci.SEMAPHORE` | ✅ |
|
||||
| [Shippable](https://www.shippable.com/) | `ci.SHIPPABLE` | ✅ |
|
||||
| [Solano CI](https://www.solanolabs.com/) | `ci.SOLANO` | ✅ |
|
||||
| [Sourcehut](https://sourcehut.org/) | `ci.SOURCEHUT` | 🚫 |
|
||||
| [Strider CD](https://strider-cd.github.io/) | `ci.STRIDER` | 🚫 |
|
||||
| [TaskCluster](http://docs.taskcluster.net) | `ci.TASKCLUSTER` | 🚫 |
|
||||
| [TeamCity](https://www.jetbrains.com/teamcity/) by JetBrains | `ci.TEAMCITY` | 🚫 |
|
||||
| [Travis CI](http://travis-ci.org) | `ci.TRAVIS` | ✅ |
|
||||
| [Vela](https://go-vela.github.io/docs/) | `ci.VELA` | ✅ |
|
||||
| [Vercel](https://vercel.com/) | `ci.VERCEL` | ✅ |
|
||||
| [Visual Studio App Center](https://appcenter.ms/) | `ci.APPCENTER` | 🚫 |
|
||||
| [Woodpecker](https://woodpecker-ci.org/) | `ci.WOODPECKER` | ✅ |
|
||||
@@ -115,11 +120,6 @@ the given CI server, otherwise `false`.
|
||||
Examples of vendor constants are `ci.TRAVIS` or `ci.APPVEYOR`. For a
|
||||
complete list, see the support table above.
|
||||
|
||||
Deprecated vendor constants that will be removed in the next major
|
||||
release:
|
||||
|
||||
- `ci.TDDIUM` (Solano CI) This have been renamed `ci.SOLANO`
|
||||
|
||||
## Ports
|
||||
|
||||
ci-info has been ported to the following languages
|
||||
|
||||
15
node_modules/ci-info/index.d.ts
generated
vendored
15
node_modules/ci-info/index.d.ts
generated
vendored
@@ -25,7 +25,14 @@ export const isPR: boolean | null;
|
||||
* to use `ci.TRAVIS` instead.
|
||||
*/
|
||||
export const name: string | null;
|
||||
/**
|
||||
* Returns a string containing the identifier of the CI server the code is running on. If
|
||||
* CI server is not detected, it returns `null`.
|
||||
*/
|
||||
export const id: string | null;
|
||||
|
||||
/* Vendor constants */
|
||||
export const AGOLA: boolean;
|
||||
export const APPCIRCLE: boolean;
|
||||
export const APPVEYOR: boolean;
|
||||
export const CODEBUILD: boolean;
|
||||
@@ -37,13 +44,17 @@ export const BUDDY: boolean;
|
||||
export const BUILDKITE: boolean;
|
||||
export const CIRCLE: boolean;
|
||||
export const CIRRUS: boolean;
|
||||
export const CLOUDFLARE_PAGES: boolean;
|
||||
export const CLOUDFLARE_WORKERS: boolean;
|
||||
export const CODEFRESH: boolean;
|
||||
export const CODEMAGIC: boolean;
|
||||
export const CODESHIP: boolean;
|
||||
export const DRONE: boolean;
|
||||
export const DSARI: boolean;
|
||||
export const EARTHLY: boolean;
|
||||
export const EAS: boolean;
|
||||
export const GERRIT: boolean;
|
||||
export const GITEA_ACTIONS: boolean;
|
||||
export const GITHUB_ACTIONS: boolean;
|
||||
export const GITLAB: boolean;
|
||||
export const GOCD: boolean;
|
||||
@@ -56,18 +67,18 @@ export const LAYERCI: boolean;
|
||||
export const MAGNUM: boolean;
|
||||
export const NETLIFY: boolean;
|
||||
export const NEVERCODE: boolean;
|
||||
export const PROW: boolean;
|
||||
export const RELEASEHUB: boolean;
|
||||
export const RENDER: boolean;
|
||||
export const SAIL: boolean;
|
||||
export const SCREWDRIVER: boolean;
|
||||
export const SEMAPHORE: boolean;
|
||||
export const SHIPPABLE: boolean;
|
||||
export const SOLANO: boolean;
|
||||
export const SOURCEHUT: boolean;
|
||||
export const STRIDER: boolean;
|
||||
export const TASKCLUSTER: boolean;
|
||||
export const TEAMCITY: boolean;
|
||||
export const TRAVIS: boolean;
|
||||
export const VELA: boolean;
|
||||
export const VERCEL: boolean;
|
||||
export const APPCENTER: boolean;
|
||||
export const WOODPECKER: boolean;
|
||||
|
||||
108
node_modules/ci-info/index.js
generated
vendored
108
node_modules/ci-info/index.js
generated
vendored
@@ -13,59 +13,40 @@ Object.defineProperty(exports, '_vendors', {
|
||||
|
||||
exports.name = null
|
||||
exports.isPR = null
|
||||
exports.id = null
|
||||
|
||||
vendors.forEach(function (vendor) {
|
||||
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]
|
||||
const isCI = envs.every(function (obj) {
|
||||
return checkEnv(obj)
|
||||
if (env.CI !== 'false') {
|
||||
vendors.forEach(function (vendor) {
|
||||
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env]
|
||||
const isCI = envs.every(function (obj) {
|
||||
return checkEnv(obj)
|
||||
})
|
||||
|
||||
exports[vendor.constant] = isCI
|
||||
|
||||
if (!isCI) {
|
||||
return
|
||||
}
|
||||
|
||||
exports.name = vendor.name
|
||||
exports.isPR = checkPR(vendor)
|
||||
exports.id = vendor.constant
|
||||
})
|
||||
|
||||
exports[vendor.constant] = isCI
|
||||
|
||||
if (!isCI) {
|
||||
return
|
||||
}
|
||||
|
||||
exports.name = vendor.name
|
||||
|
||||
switch (typeof vendor.pr) {
|
||||
case 'string':
|
||||
// "pr": "CIRRUS_PR"
|
||||
exports.isPR = !!env[vendor.pr]
|
||||
break
|
||||
case 'object':
|
||||
if ('env' in vendor.pr) {
|
||||
// "pr": { "env": "BUILDKITE_PULL_REQUEST", "ne": "false" }
|
||||
exports.isPR = vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne
|
||||
} else if ('any' in vendor.pr) {
|
||||
// "pr": { "any": ["ghprbPullId", "CHANGE_ID"] }
|
||||
exports.isPR = vendor.pr.any.some(function (key) {
|
||||
return !!env[key]
|
||||
})
|
||||
} else {
|
||||
// "pr": { "DRONE_BUILD_EVENT": "pull_request" }
|
||||
exports.isPR = checkEnv(vendor.pr)
|
||||
}
|
||||
break
|
||||
default:
|
||||
// PR detection not supported for this vendor
|
||||
exports.isPR = null
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
exports.isCI = !!(
|
||||
env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'
|
||||
(env.BUILD_ID || // Jenkins, Cloudbees
|
||||
env.BUILD_NUMBER || // Jenkins, TeamCity
|
||||
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
||||
env.CI_APP_ID || // Appflow
|
||||
env.CI_BUILD_ID || // Appflow
|
||||
env.CI_BUILD_NUMBER || // Appflow
|
||||
env.CI_NAME || // Codeship and others
|
||||
env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
||||
env.RUN_ID || // TaskCluster, dsari
|
||||
exports.name ||
|
||||
false)
|
||||
env.BUILD_NUMBER || // Jenkins, TeamCity
|
||||
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages/Workers
|
||||
env.CI_APP_ID || // Appflow
|
||||
env.CI_BUILD_ID || // Appflow
|
||||
env.CI_BUILD_NUMBER || // Appflow
|
||||
env.CI_NAME || // Codeship and others
|
||||
env.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
||||
env.RUN_ID || // TaskCluster, dsari
|
||||
exports.name ||
|
||||
false)
|
||||
)
|
||||
|
||||
function checkEnv (obj) {
|
||||
@@ -79,12 +60,45 @@ function checkEnv (obj) {
|
||||
return env[obj.env] && env[obj.env].includes(obj.includes)
|
||||
// }
|
||||
}
|
||||
|
||||
if ('any' in obj) {
|
||||
return obj.any.some(function (k) {
|
||||
return !!env[k]
|
||||
})
|
||||
}
|
||||
|
||||
return Object.keys(obj).every(function (k) {
|
||||
return env[k] === obj[k]
|
||||
})
|
||||
}
|
||||
|
||||
function checkPR (vendor) {
|
||||
switch (typeof vendor.pr) {
|
||||
case 'string':
|
||||
// "pr": "CIRRUS_PR"
|
||||
return !!env[vendor.pr]
|
||||
case 'object':
|
||||
if ('env' in vendor.pr) {
|
||||
if ('any' in vendor.pr) {
|
||||
// "pr": { "env": "CODEBUILD_WEBHOOK_EVENT", "any": ["PULL_REQUEST_CREATED", "PULL_REQUEST_UPDATED"] }
|
||||
return vendor.pr.any.some(function (key) {
|
||||
return env[vendor.pr.env] === key
|
||||
})
|
||||
} else {
|
||||
// "pr": { "env": "BUILDKITE_PULL_REQUEST", "ne": "false" }
|
||||
return vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne
|
||||
}
|
||||
} else if ('any' in vendor.pr) {
|
||||
// "pr": { "any": ["ghprbPullId", "CHANGE_ID"] }
|
||||
return vendor.pr.any.some(function (key) {
|
||||
return !!env[key]
|
||||
})
|
||||
} else {
|
||||
// "pr": { "DRONE_BUILD_EVENT": "pull_request" }
|
||||
return checkEnv(vendor.pr)
|
||||
}
|
||||
default:
|
||||
// PR detection not supported for this vendor
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
33
node_modules/ci-info/package.json
generated
vendored
33
node_modules/ci-info/package.json
generated
vendored
@@ -1,14 +1,27 @@
|
||||
{
|
||||
"name": "ci-info",
|
||||
"version": "3.9.0",
|
||||
"version": "4.3.1",
|
||||
"description": "Get details about the current Continuous Integration environment",
|
||||
"main": "index.js",
|
||||
"typings": "index.d.ts",
|
||||
"type": "commonjs",
|
||||
"author": "Thomas Watson Steen <w@tson.dk> (https://twitter.com/wa7son)",
|
||||
"license": "MIT",
|
||||
"repository": "https://github.com/watson/ci-info.git",
|
||||
"repository": "github:watson/ci-info",
|
||||
"bugs": "https://github.com/watson/ci-info/issues",
|
||||
"homepage": "https://github.com/watson/ci-info",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Sibiraj",
|
||||
"url": "https://github.com/sibiraj-s"
|
||||
}
|
||||
],
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/sibiraj-s"
|
||||
}
|
||||
],
|
||||
"keywords": [
|
||||
"ci",
|
||||
"continuous",
|
||||
@@ -22,22 +35,18 @@
|
||||
"index.d.ts",
|
||||
"CHANGELOG.md"
|
||||
],
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/sibiraj-s"
|
||||
}
|
||||
],
|
||||
"scripts": {
|
||||
"build": "node sort-vendors.js && node create-typings.js",
|
||||
"lint:fix": "standard --fix",
|
||||
"test": "standard && node test.js",
|
||||
"prepare": "husky install"
|
||||
"prepare": "husky install || true"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clear-module": "^4.1.2",
|
||||
"husky": "^8.0.3",
|
||||
"standard": "^17.1.0",
|
||||
"tape": "^5.7.0"
|
||||
"husky": "^9.1.7",
|
||||
"publint": "^0.3.12",
|
||||
"standard": "^17.1.2",
|
||||
"tape": "^5.9.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
|
||||
69
node_modules/ci-info/vendors.json
generated
vendored
69
node_modules/ci-info/vendors.json
generated
vendored
@@ -1,8 +1,18 @@
|
||||
[
|
||||
{
|
||||
"name": "Agola CI",
|
||||
"constant": "AGOLA",
|
||||
"env": "AGOLA_GIT_REF",
|
||||
"pr": "AGOLA_PULL_REQUEST_ID"
|
||||
},
|
||||
{
|
||||
"name": "Appcircle",
|
||||
"constant": "APPCIRCLE",
|
||||
"env": "AC_APPCIRCLE"
|
||||
"env": "AC_APPCIRCLE",
|
||||
"pr": {
|
||||
"env": "AC_GIT_PR",
|
||||
"ne": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "AppVeyor",
|
||||
@@ -13,7 +23,15 @@
|
||||
{
|
||||
"name": "AWS CodeBuild",
|
||||
"constant": "CODEBUILD",
|
||||
"env": "CODEBUILD_BUILD_ARN"
|
||||
"env": "CODEBUILD_BUILD_ARN",
|
||||
"pr": {
|
||||
"env": "CODEBUILD_WEBHOOK_EVENT",
|
||||
"any": [
|
||||
"PULL_REQUEST_CREATED",
|
||||
"PULL_REQUEST_UPDATED",
|
||||
"PULL_REQUEST_REOPENED"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Azure Pipelines",
|
||||
@@ -67,6 +85,16 @@
|
||||
"env": "CIRRUS_CI",
|
||||
"pr": "CIRRUS_PR"
|
||||
},
|
||||
{
|
||||
"name": "Cloudflare Pages",
|
||||
"constant": "CLOUDFLARE_PAGES",
|
||||
"env": "CF_PAGES"
|
||||
},
|
||||
{
|
||||
"name": "Cloudflare Workers",
|
||||
"constant": "CLOUDFLARE_WORKERS",
|
||||
"env": "WORKERS_CI"
|
||||
},
|
||||
{
|
||||
"name": "Codefresh",
|
||||
"constant": "CODEFRESH",
|
||||
@@ -104,6 +132,11 @@
|
||||
"constant": "DSARI",
|
||||
"env": "DSARI"
|
||||
},
|
||||
{
|
||||
"name": "Earthly",
|
||||
"constant": "EARTHLY",
|
||||
"env": "EARTHLY_CI"
|
||||
},
|
||||
{
|
||||
"name": "Expo Application Services",
|
||||
"constant": "EAS",
|
||||
@@ -114,6 +147,11 @@
|
||||
"constant": "GERRIT",
|
||||
"env": "GERRIT_PROJECT"
|
||||
},
|
||||
{
|
||||
"name": "Gitea Actions",
|
||||
"constant": "GITEA_ACTIONS",
|
||||
"env": "GITEA_ACTIONS"
|
||||
},
|
||||
{
|
||||
"name": "GitHub Actions",
|
||||
"constant": "GITHUB_ACTIONS",
|
||||
@@ -199,6 +237,11 @@
|
||||
"ne": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Prow",
|
||||
"constant": "PROW",
|
||||
"env": "PROW_JOB_ID"
|
||||
},
|
||||
{
|
||||
"name": "ReleaseHub",
|
||||
"constant": "RELEASEHUB",
|
||||
@@ -233,20 +276,6 @@
|
||||
"env": "SEMAPHORE",
|
||||
"pr": "PULL_REQUEST_NUMBER"
|
||||
},
|
||||
{
|
||||
"name": "Shippable",
|
||||
"constant": "SHIPPABLE",
|
||||
"env": "SHIPPABLE",
|
||||
"pr": {
|
||||
"IS_PULL_REQUEST": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Solano CI",
|
||||
"constant": "SOLANO",
|
||||
"env": "TDDIUM",
|
||||
"pr": "TDDIUM_PR_ID"
|
||||
},
|
||||
{
|
||||
"name": "Sourcehut",
|
||||
"constant": "SOURCEHUT",
|
||||
@@ -281,6 +310,14 @@
|
||||
"ne": "false"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Vela",
|
||||
"constant": "VELA",
|
||||
"env": "VELA",
|
||||
"pr": {
|
||||
"VELA_PULL_REQUEST": "1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Vercel",
|
||||
"constant": "VERCEL",
|
||||
|
||||
Reference in New Issue
Block a user