Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f329ff5

Browse filesBrowse files
feat: add alpic support (#143)
1 parent 384291f commit f329ff5
Copy full SHA for f329ff5

4 files changed

+25Lines changed: 25 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎README.md‎

Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Officially supported CI servers:
3535
| Name | Constant | isPR |
3636
| ------------------------------------------------------------------------------- | ----------------------- | ---- |
3737
| [Agola CI](https://agola.io/) | `ci.AGOLA` ||
38+
| [Alpic](https://alpic.ai/) | `ci.ALPIC` | 🚫 |
3839
| [Appcircle](https://appcircle.io/) | `ci.APPCIRCLE` ||
3940
| [AppVeyor](http://www.appveyor.com) | `ci.APPVEYOR` ||
4041
| [AWS CodeBuild](https://aws.amazon.com/codebuild/) | `ci.CODEBUILD` ||
Collapse file

‎index.d.ts‎

Copy file name to clipboardExpand all lines: index.d.ts
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const id: string | null;
3333

3434
/* Vendor constants */
3535
export const AGOLA: boolean;
36+
export const ALPIC: boolean;
3637
export const APPCIRCLE: boolean;
3738
export const APPVEYOR: boolean;
3839
export const CODEBUILD: boolean;
Collapse file

‎test.js‎

Copy file name to clipboardExpand all lines: test.js
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,24 @@ test('Anonymous CI', function (t) {
9999
t.end()
100100
})
101101

102+
test('Alpic', function (t) {
103+
process.env.ALPIC_HOST = 'true'
104+
105+
clearModule('./')
106+
const ci = require('./')
107+
108+
t.equal(ci.isCI, true)
109+
t.equal(ci.isPR, null)
110+
t.equal(ci.name, 'Alpic')
111+
t.equal(ci.ALPIC, true)
112+
t.equal(ci.id, 'ALPIC')
113+
assertVendorConstants('ALPIC', ci, t)
114+
115+
delete process.env.ALPIC_HOST
116+
117+
t.end()
118+
})
119+
102120
test('AppVeyor - PR', function (t) {
103121
process.env.APPVEYOR = 'true'
104122
process.env.APPVEYOR_PULL_REQUEST_NUMBER = '42'
Collapse file

‎vendors.json‎

Copy file name to clipboardExpand all lines: vendors.json
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
"env": "AGOLA_GIT_REF",
66
"pr": "AGOLA_PULL_REQUEST_ID"
77
},
8+
{
9+
"name": "Alpic",
10+
"constant": "ALPIC",
11+
"env": "ALPIC_HOST"
12+
},
813
{
914
"name": "Appcircle",
1015
"constant": "APPCIRCLE",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.