Skip to content

Commit

Permalink
chore: remove solano CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed Oct 29, 2023
1 parent bb13901 commit d6315fc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 50 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ Officially supported CI servers:
| [Sail CI](https://sail.ci/) | `ci.SAIL` ||
| [Screwdriver](https://screwdriver.cd/) | `ci.SCREWDRIVER` ||
| [Semaphore](https://semaphoreci.com) | `ci.SEMAPHORE` ||
| [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` | 🚫 |
Expand Down Expand Up @@ -117,11 +116,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
Expand Down
1 change: 0 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const RENDER: boolean;
export const SAIL: boolean;
export const SCREWDRIVER: boolean;
export const SEMAPHORE: boolean;
export const SOLANO: boolean;
export const SOURCEHUT: boolean;
export const STRIDER: boolean;
export const TASKCLUSTER: boolean;
Expand Down
37 changes: 0 additions & 37 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,42 +467,6 @@ test('Semaphore - Not PR', function (t) {
t.end()
})

test('Solano CI - PR', function (t) {
process.env.TDDIUM = 'true'
process.env.TDDIUM_PR_ID = '42'

clearModule('./')
const ci = require('./')

t.equal(ci.isCI, true)
t.equal(ci.isPR, true)
t.equal(ci.name, 'Solano CI')
t.equal(ci.SOLANO, true)
assertVendorConstants('SOLANO', ci, t)

delete process.env.TDDIUM
delete process.env.TDDIUM_PR_ID

t.end()
})

test('Solano CI - Not PR', function (t) {
process.env.TDDIUM = 'true'

clearModule('./')
const ci = require('./')

t.equal(ci.isCI, true)
t.equal(ci.isPR, false)
t.equal(ci.name, 'Solano CI')
t.equal(ci.SOLANO, true)
assertVendorConstants('SOLANO', ci, t)

delete process.env.TDDIUM

t.end()
})

test('Travis CI - PR', function (t) {
process.env.TRAVIS = 'true'
process.env.TRAVIS_PULL_REQUEST = '42'
Expand Down Expand Up @@ -1011,7 +975,6 @@ test('Vela - PR', function (t) {
function assertVendorConstants (expect, ci, t) {
ci._vendors.forEach(function (constant) {
let bool = constant === expect
bool = (expect === 'SOLANO' && constant === 'TDDIUM') || bool // support deprecated option
t.equal(ci[constant], bool, 'ci.' + constant)
})
}
6 changes: 0 additions & 6 deletions vendors.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,6 @@
"env": "SEMAPHORE",
"pr": "PULL_REQUEST_NUMBER"
},
{
"name": "Solano CI",
"constant": "SOLANO",
"env": "TDDIUM",
"pr": "TDDIUM_PR_ID"
},
{
"name": "Sourcehut",
"constant": "SOURCEHUT",
Expand Down

0 comments on commit d6315fc

Please sign in to comment.