Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grantmcconnaughey/ci.py
Python library for working with Continuous Integration services
https://github.com/grantmcconnaughey/ci.py
ci-services circleci continuous-integration github-actions python travis-ci
Last synced: about 2 months ago
JSON representation
Python library for working with Continuous Integration services
- Host: GitHub
- URL: https://github.com/grantmcconnaughey/ci.py
- Owner: grantmcconnaughey
- License: mit
- Created: 2019-12-31T22:03:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-01T22:12:00.000Z (about 5 years ago)
- Last Synced: 2024-10-08T18:19:55.191Z (3 months ago)
- Topics: ci-services, circleci, continuous-integration, github-actions, python, travis-ci
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ci.py
[![Build Status](https://travis-ci.org/grantmcconnaughey/ci.py.svg?branch=master)](https://travis-ci.org/grantmcconnaughey/ci.py)
A Python library for working with Continuous Integration services. For Python 2.7 and 3.5+.
## Usage
First, `pip` install ci.py:
$ pip install ci-py
## Available Methods
```python
import cici.is_ci() # True/False
ci.is_pr() # True/False
ci.name() # "Travis CI"
ci.pr() # "38"
ci.repo() # "grantmcconnaughey/ci.py"
ci.commit_sha() # "246249bab34e78a020efc67b626efd6052e754d9"
```## CI Services
ci.py works with the following CI services:
- Travis CI
- Circle CI
- GitHub Actions
- Drone CI
- AppVeyor
- Shippable
- Semaphore
- AWS CodeBuild
- Azure DevOps## Running Tests
To run tests, install `tox` and run it from the command line:
```
> tox
```This will run tests against all of the Python versions defined in `tox.ini`. Note that all of these versions of Python will need to be installed. You can use `pyenv` to install these different versions.