Skip to content

Commit

Permalink
[Travis] Add Travis CI (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushr2 committed Mar 24, 2019
1 parent 76b852f commit c9137b6
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: required
language: python
python:
- "3.6"
services:
- docker
cache: pip
branches:
only:
- /.*/
install:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install -r requirements_test.txt
- python setup.py install
script:
- black --check chainlink/ tests/ setup.py
- flake8 --count --config=setup.cfg
- py.test -v --cov=chainlink/ tests/ --cov coveralls --cov-report term-missing --doctest-modules
after_success:
- coveralls
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Chainlink
[![Build Status](https://travis-ci.com/illinois-cs241/chainlink.svg?branch=master)](https://travis-ci.com/illinois-cs241/chainlink)
[![Coverage Status](https://coveralls.io/repos/github/illinois-cs241/chainlink/badge.svg?branch=master)](https://coveralls.io/github/illinois-cs241/chainlink?branch=master)
![License](https://img.shields.io/badge/license-NCSA%2FIllinois-blue.svg)
![Python Versions](https://img.shields.io/badge/python-3.5%20%7C%203.6-blue.svg)

`chainlink` is a Python module for running Docker containers in sequence.

Expand Down Expand Up @@ -71,7 +75,7 @@ The run function returns a list of object, an example of which is annotated belo
# immediately before it was removed (see Docker SDK for details)
"data": { ... },
# whether or not the stage was killed due to a timeout
"killed": False
"killed": False,
# the stdout and stderr (with timestamps) for the stage
"logs": {
"stdout": b"bytestring",
Expand Down
5 changes: 5 additions & 0 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
black
flake8
python-coveralls
pytest-cov
coverage
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]
max-line-length = 88
exclude = .git/,venv/

[tool:pytest]
python_files = *.py
Empty file added tests/__init__.py
Empty file.
Empty file added tests/integration/__init__.py
Empty file.

0 comments on commit c9137b6

Please sign in to comment.