Continuous Integration Information
Project description
ci-info
A Python implementation of watson/ci-info. Get details about the current Continuous Integration environment.
Please open an issue if your CI server isn't properly detected :)
Supported CI tools
Officially supported CI servers:
| Name | isPR |
|---|---|
| Agola CI | ✅ |
| Appcircle | ✅ |
| AppVeyor | ✅ |
| AWS CodeBuild | ✅ |
| Azure Pipelines | ✅ |
| Bamboo by Atlassian | 🚫 |
| Bitbucket Pipelines | ✅ |
| Bitrise | ✅ |
| Buddy | ✅ |
| Buildkite | ✅ |
| CircleCI | ✅ |
| Cirrus CI | ✅ |
| Cloudflare Pages | 🚫 |
| Cloudflare Workers | 🚫 |
| Codefresh | ✅ |
| Codeship | 🚫 |
| Drone | ✅ |
| dsari | 🚫 |
| Earthly CI | 🚫 |
| Expo Application Services | 🚫 |
| Gerrit CI | 🚫 |
| GitHub Actions | ✅ |
| GitLab CI | ✅ |
| Gitea Actions | 🚫 |
| GoCD | 🚫 |
| Google Cloud Build | 🚫 |
| Harness CI | 🚫 |
| Heroku | 🚫 |
| Hudson | 🚫 |
| Jenkins CI | ✅ |
| LayerCI | ✅ |
| Magnum CI | 🚫 |
| Netlify CI | ✅ |
| Nevercode | ✅ |
| Prow | 🚫 |
| ReleaseHub | 🚫 |
| Render | ✅ |
| Sail CI | ✅ |
| Screwdriver | ✅ |
| Semaphore | ✅ |
| Shippable | ✅ |
| Solano CI | ✅ |
| Sourcehut | 🚫 |
| Strider CD | 🚫 |
| TaskCluster | 🚫 |
| TeamCity by JetBrains | 🚫 |
| Travis CI | ✅ |
| Vela | ✅ |
| Vercel | ✅ |
| Visual Studio App Center | 🚫 |
| Woodpecker | ✅ |
Installation
pip install ci-info
Usage
import ci_info
if ci_info.is_ci():
print(ci_info.name())
"My CI Name"
API
ci_info.name()
Returns a string containing name of the CI server the code is running on.
If CI server is not detected, it returns None.
Don't depend on the value of this string not to change for a specific vendor.
ci_info.is_ci()
Returns a boolean. Will be True if the code is running on a CI server,
otherwise False.
Some CI servers not listed here might still trigger the ci_info.is_ci()
boolean to be set to True if they use certain vendor neutral
environment variables. In those cases ci_info.name() will be None and no
vendor specific boolean will be set to True.
ci_info.is_pr()
Returns a boolean if PR detection is supported for the current CI server. Will
be True if a PR is being tested, otherwise False. If PR detection is
not supported for the current CI server, the value will be None.
ci_info.info()
Returns a dictionary of all above values in key/value pairs.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ci_info-0.4.0.tar.gz.
File metadata
- Download URL: ci_info-0.4.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34d5a18726b3780abdf985234b871ac33124d64dd8e294870b8cc5b410c18418
|
|
| MD5 |
03b6973e292b19a449ce095349028a3f
|
|
| BLAKE2b-256 |
f1057880d5714b2e1c4c2f2ccbd04b2e2bdcd3753d91d5e925b3a91af25970db
|
Provenance
The following attestation bundles were made for ci_info-0.4.0.tar.gz:
Publisher:
test.yml on mgxd/ci-info
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ci_info-0.4.0.tar.gz -
Subject digest:
34d5a18726b3780abdf985234b871ac33124d64dd8e294870b8cc5b410c18418 - Sigstore transparency entry: 904216603
- Sigstore integration time:
-
Permalink:
mgxd/ci-info@4f398f595abf951b0f70e62baade256a94a58b4e -
Branch / Tag:
refs/tags/0.4.0 - Owner: https://github.com/mgxd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test.yml@4f398f595abf951b0f70e62baade256a94a58b4e -
Trigger Event:
push
-
Statement type:
File details
Details for the file ci_info-0.4.0-py2.py3-none-any.whl.
File metadata
- Download URL: ci_info-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
204e8ef60cb70270eefb2b3035fe6acc78a186dbbcb02f8f4f051cb20a6fbb8d
|
|
| MD5 |
7e3ae455bb131c7cfb0043c071bfd87e
|
|
| BLAKE2b-256 |
12d527742bf24dde737fe05e6fba615d9aa1bf95f4dda258a45cf97eb403366e
|
Provenance
The following attestation bundles were made for ci_info-0.4.0-py2.py3-none-any.whl:
Publisher:
test.yml on mgxd/ci-info
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ci_info-0.4.0-py2.py3-none-any.whl -
Subject digest:
204e8ef60cb70270eefb2b3035fe6acc78a186dbbcb02f8f4f051cb20a6fbb8d - Sigstore transparency entry: 904216746
- Sigstore integration time:
-
Permalink:
mgxd/ci-info@4f398f595abf951b0f70e62baade256a94a58b4e -
Branch / Tag:
refs/tags/0.4.0 - Owner: https://github.com/mgxd
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
test.yml@4f398f595abf951b0f70e62baade256a94a58b4e -
Trigger Event:
push
-
Statement type: