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 |
---|---|
AWS CodeBuild | 🚫 |
AppVeyor | ✅ |
Azure Pipelines | ✅ |
Appcircle | 🚫 |
Bamboo by Atlassian | 🚫 |
Bitbucket Pipelines | ✅ |
Bitrise | ✅ |
Buddy | ✅ |
Buildkite | ✅ |
CircleCI | ✅ |
Cirrus CI | ✅ |
Codefresh | ✅ |
Codeship | 🚫 |
Drone | ✅ |
dsari | 🚫 |
Expo Application Services | 🚫 |
GitHub Actions | ✅ |
GitLab CI | ✅ |
GoCD | 🚫 |
Hudson | 🚫 |
Jenkins CI | ✅ |
LayerCI | ✅ |
Magnum CI | 🚫 |
Netlify CI | ✅ |
Nevercode | ✅ |
Render | ✅ |
Sail CI | ✅ |
Screwdriver | ✅ |
Semaphore | ✅ |
Shippable | ✅ |
Solano CI | ✅ |
Strider CD | 🚫 |
TaskCluster | 🚫 |
TeamCity by JetBrains | 🚫 |
Travis CI | ✅ |
Vercel | 🚫 |
Visual Studio App Center | 🚫 |
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
Release history Release notifications | RSS feed
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
File details
Details for the file ci-info-0.3.0.tar.gz
.
File metadata
- Download URL: ci-info-0.3.0.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fd50cbd401f29adffeeb18b0489e232d16ac1a7458ac6bc316deab6ae535fb0 |
|
MD5 | cb89a65d7087d9b731de51f5e7d6178c |
|
BLAKE2b-256 | 1127938d6ef93df09c686dcee1c7334578274320e98e7bf912a6409cf2c8c3e5 |
File details
Details for the file ci_info-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: ci_info-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9e05d262a6c48aa03cd904475de5ce8c4da8a5435e516631c795d0487dc9e07 |
|
MD5 | 2f21431599a7b88e7e03841cd236e66b |
|
BLAKE2b-256 | 13c38ac768b389d5b6dda1c3ce7992b3acd2b46401f9b71439123858b17b1a2c |