Skip to content

Commit 04ba6bb

Browse files
authored
[Travis] Refactor for CI integration (#16)
* black reformat, updated git ignore for a python project, fixed imports and linter warnings * [Travis] Add Travis CI (#17)
1 parent bcefe60 commit 04ba6bb

File tree

12 files changed

+341
-230
lines changed

12 files changed

+341
-230
lines changed

.gitignore

Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,113 @@
1-
*.pyc
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.nox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
.hypothesis/
49+
.pytest_cache/
50+
51+
# Translations
52+
*.mo
53+
*.pot
54+
55+
# Django stuff:
56+
*.log
57+
local_settings.py
58+
db.sqlite3
59+
60+
# Flask stuff:
61+
instance/
62+
.webassets-cache
63+
64+
# Scrapy stuff:
65+
.scrapy
66+
67+
# Sphinx documentation
68+
docs/_build/
69+
70+
# PyBuilder
71+
target/
72+
73+
# Jupyter Notebook
74+
.ipynb_checkpoints
75+
76+
# IPython
77+
profile_default/
78+
ipython_config.py
79+
80+
# pyenv
81+
.python-version
82+
83+
# celery beat schedule file
84+
celerybeat-schedule
85+
86+
# SageMath parsed files
87+
*.sage.py
88+
89+
# Environments
90+
.env
91+
.venv
92+
env/
93+
venv/
94+
ENV/
95+
env.bak/
96+
venv.bak/
97+
98+
# Spyder project settings
99+
.spyderproject
100+
.spyproject
101+
102+
# Rope project settings
103+
.ropeproject
104+
105+
# mkdocs documentation
106+
/site
107+
108+
# mypy
109+
.mypy_cache/
110+
.dmypy.json
111+
dmypy.json
112+
113+
.idea/

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
sudo: required
2+
language: python
3+
python:
4+
- "3.6"
5+
services:
6+
- docker
7+
cache: pip
8+
branches:
9+
only:
10+
- /.*/
11+
install:
12+
- pip install --upgrade pip
13+
- pip install -r requirements.txt
14+
- pip install -r requirements_test.txt
15+
- python setup.py install
16+
script:
17+
- black --check chainlink/ tests/ setup.py
18+
- flake8 --count --config=setup.cfg
19+
- py.test -v --cov=chainlink/ tests/ --cov coveralls --cov-report term-missing --doctest-modules
20+
after_success:
21+
- coveralls

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Chainlink
2+
[![Build Status](https://travis-ci.com/illinois-cs241/chainlink.svg?branch=master)](https://travis-ci.com/illinois-cs241/chainlink)
3+
[![Coverage Status](https://coveralls.io/repos/github/illinois-cs241/chainlink/badge.svg?branch=master)](https://coveralls.io/github/illinois-cs241/chainlink?branch=master)
4+
![License](https://img.shields.io/badge/license-NCSA%2FIllinois-blue.svg)
5+
![Python Versions](https://img.shields.io/badge/python-3.5%20%7C%203.6-blue.svg)
26

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

@@ -71,7 +75,7 @@ The run function returns a list of object, an example of which is annotated belo
7175
# immediately before it was removed (see Docker SDK for details)
7276
"data": { ... },
7377
# whether or not the stage was killed due to a timeout
74-
"killed": False
78+
"killed": False,
7579
# the stdout and stderr (with timestamps) for the stage
7680
"logs": {
7781
"stdout": b"bytestring",

0 commit comments

Comments
 (0)