-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathenv-ci.node.txt
73 lines (68 loc) · 4.3 KB
/
env-ci.node.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
┏━━━━━━━━━━━━┓
┃ ENV-CI ┃
┗━━━━━━━━━━━━┛
ALTERNATIVES ==> # - env-ci (preferred)
# - missing CI: Azure Pipelines, dsari, GoCD, Hudson, Magnum CI, Netlify CI, Strider CD, TaskCluster
# - detection, name, id, isPR, PR NUM|branch, git commit|branch|tag, build|job NUM|URL, repo slug, root dir
# - ci-info:
# - missing CI: Codefresh, GitHub actions, Visual Studio Team Services, Wercker
# - detection, name, id, isPR
# - ci-parallel-vars:
# - misses lots of CI
# - only for job count|number
VERSION ==> #11.1.0
ENV-CI([OPTS])->OBJ #Returns CI information using ENVVARs. OBJ:
# (always defined)
# - isCi BOOL (if CI-specific ENVVAR or if ENVVAR CI=1)
# (can be undefined)
# - commit STR (e.g. '7ab7a90fdce8f55c075f0d0c4c043caaf43ffec8')
# - branch STR (e.g. 'master')
# (only when CI found, then always defined)
# - name STR (e.g. 'Travis')
# - service STR (e.g. 'travis')
# (only when CI found, can be undefined)
# - build 'NUM' (build number) (1 build === several jobs)
# - buildUrl 'URL'
# - job 'NUM'
# - jobUrl 'URL'
# - tag 'TAG' (git tag)
# - slug 'USER/REPO'
# - pr 'NUM'
# - isPr BOOL
# - prBranch STR (e.g. 'master')
# - root 'DIR' (package root absolute path)
#OPTS:
# - env (def: process.env)
# - cwd (def: process.cwd()): used by git
AVAILABLE CI ==> #name | service:
# Appveyor | appveyor
# AWS CodeBuild | codebuild
# Azure Pipelines | azure-pipelines
# Bamboo | bamboo
# Bitbucket Pipelines | bitbucket
# Bitrise | bitrise
# Buddy | buddy
# Buildkite | buildkite
# CircleCI | circleci
# Cirrus CI | cirrus
# Cloudflare Pages | cloudflarePages
# Codefresh | codefresh
# Codeship | codeship
# Drone | drone
# GitHub Actions | github
# GitLab CI/CD | gitlab
# Jenkins | jenkins
# JetBrains Space | jetbrainsSpace
# Netlify | netlify
# Puppet | puppet
# Sail CI | sail
# Scrutinizer | scrutinizer
# Screwdriver.cd | screwdriver
# Semaphore | semaphore
# Shippable | shippable
# TeamCity | teamcity
# Travis CI | travis
# Vela | vela
# Vercel | vercel
# Wercker | wercker
# Woodpecker CI | woodpecker