~yerinalexey/pcrond

e97d37d56b6902754318d5e0b0e2e9ca894bb35d — Luca Vercelli 2 years ago 9230c10
easier tox
3 files changed, 8 insertions(+), 18 deletions(-)

M .travis.yml
M requirements-dev.txt
M tox.ini
M .travis.yml => .travis.yml +0 -1
@@ 2,7 2,6 @@ sudo: false
language: python
python:
    - "2.7.11"
    - "3.5"
    - "3.6"
install: pip install tox-travis coveralls
script:

M requirements-dev.txt => requirements-dev.txt +5 -7
@@ 1,8 1,6 @@
docutils==0.13.1
mock==2.0.0
Pygments==2.2.0
pytest-cov==2.5.1
pytest-flake8==0.9.1
pytest==3.2.5
Sphinx==1.6.2
mock>=2.0.0
Pygments>=2.2.0
pytest-cov>=2.5.1
pytest-flake8>=0.9.1
pytest>=3.2.5


M tox.ini => tox.ini +3 -10
@@ 1,21 1,14 @@
[tox]
envlist = py27, py36, docs
envlist = py27, py36

[tox:travis]
#TODO this is DEPRECATED
2.7.11 = py27
3.5 = py35
3.6 = py36

[testenv]
deps = -rrequirements-dev.txt
commands =
    py.test test_scheduler.py --flake8 pcrond -v --cov pcrond --cov-report term-missing
    py.test test_scheduler.py
    #TODO py.test test_scheduler.py --flake8 pcrond -v --cov pcrond --cov-report term-missing
    python setup.py check --strict --metadata --restructuredtext

[testenv:docs]
changedir = docs
deps = -rrequirements-dev.txt
commands =
    sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html