Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msabramo/travis
Travis-CI service api wrapper for python
https://github.com/msabramo/travis
Last synced: 28 days ago
JSON representation
Travis-CI service api wrapper for python
- Host: GitHub
- URL: https://github.com/msabramo/travis
- Owner: msabramo
- License: bsd-2-clause
- Created: 2012-06-20T19:02:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-20T21:53:07.000Z (over 12 years ago)
- Last Synced: 2024-05-09T20:38:40.682Z (8 months ago)
- Language: Python
- Size: 98.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# travis
travis is Travis-CI service api wrapper for python
## Usage:
import travis
print show('travis-ci', 'travis-ci').last.stable
## Documentation:
### **repositories()**
list of the latest repos being tested### **show(owner, repo, build=None)**
returns either a repository object
if a build number is provided then a build object is returned### **builds(owner, repo)**
returns a list of builds for a given repo### **get_builds()**
*meant for internal use*
works like **builds()**### **Repo(dict())**
* description
* id
* last_build_duration
* last_build_finished_at
* last_build_id
* last_build_language
* last_build_number
* last_build_result
* last_build_started_at
* last_build_status
* public_key
* slug
* builds
* last
* stable### **Build(dict())**
* branch
* commit
* duration
* event_type
* finished_at
* id
* message
* number
* repository_id
* result
* started_at
* state
* passed### **Cute(dict())**
*meant for internal use*
both Repo() and Build() are based on this class
it receives a dict and makes all the keys available as attributes## Bugs & Co.
If you find bugs or new features that are not implemented you can:
* Fork and implement the changes
* Fork and write a test that fails but shouldn't
* Submit an issue in github## Aknowledgment
Kenneth Reitz for being awesome and showing how to do things right