diff --git a/README.md b/README.md index 36b0fa8..4c6548f 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ 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` | ✅ | +| [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` | ✅ | diff --git a/index.d.ts b/index.d.ts index 8904f50..816d63a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -55,6 +55,7 @@ export const JENKINS: boolean; export const MAGNUM: boolean; export const NETLIFY: boolean; export const NEVERCODE: boolean; +export const RELEASEHUB: boolean; export const RENDER: boolean; export const SAIL: boolean; export const SCREWDRIVER: boolean; diff --git a/test.js b/test.js index 9313789..d914489 100644 --- a/test.js +++ b/test.js @@ -909,6 +909,22 @@ test('Sourcehit', function (t) { t.end() }) +test('ReleaseHub', function (t) { + process.env.RELEASE_BUILD_ID = '1a' + + clearModule('./') + const ci = require('./') + + t.equal(ci.isCI, true) + t.equal(ci.name, 'ReleaseHub') + t.equal(ci.RELEASEHUB, true) + assertVendorConstants('RELEASEHUB', ci, t) + + delete process.env.RELEASE_BUILD_ID + + t.end() +}) + function assertVendorConstants (expect, ci, t) { ci._vendors.forEach(function (constant) { let bool = constant === expect diff --git a/vendors.json b/vendors.json index 26315b9..00c1601 100644 --- a/vendors.json +++ b/vendors.json @@ -161,6 +161,11 @@ "env": "NEVERCODE", "pr": { "env": "NEVERCODE_PULL_REQUEST", "ne": "false" } }, + { + "name": "ReleaseHub", + "constant": "RELEASEHUB", + "env": "RELEASE_BUILD_ID" + }, { "name": "Render", "constant": "RENDER",