Configure CI with tox and coverage
parent
f5a0522128
commit
edaa82622b
|
@ -0,0 +1,3 @@
|
||||||
|
[report]
|
||||||
|
exclude_lines =
|
||||||
|
if __name__ == .__main__.:
|
18
.travis.yml
18
.travis.yml
|
@ -3,10 +3,16 @@ language: python
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
python:
|
matrix:
|
||||||
- "3.5"
|
include:
|
||||||
- "3.6"
|
- python: 3.7
|
||||||
- "3.7"
|
env: TOXENV=py,codecov
|
||||||
|
- python: 3.6
|
||||||
|
env: TOXENV=py,codecov
|
||||||
|
- python: 3.5
|
||||||
|
env: TOXENV=py,codecov
|
||||||
|
|
||||||
install: pip install -e .
|
install:
|
||||||
script: python -m unittest
|
- pip install tox
|
||||||
|
|
||||||
|
script: tox
|
||||||
|
|
16
tox.ini
16
tox.ini
|
@ -1,6 +1,18 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py36, py37
|
envlist = py35, py36, py37
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
|
deps =
|
||||||
|
coverage
|
||||||
|
|
||||||
commands =
|
commands =
|
||||||
python -m unittest
|
coverage run --include=i2plib/* -m unittest
|
||||||
|
|
||||||
|
[testenv:codecov]
|
||||||
|
passenv = CI TRAVIS TRAVIS_*
|
||||||
|
deps = codecov
|
||||||
|
skip_install = true
|
||||||
|
commands =
|
||||||
|
coverage combine
|
||||||
|
coverage report
|
||||||
|
codecov
|
||||||
|
|
Loading…
Reference in New Issue