diff --git a/.travis.yml b/.travis.yml index 4195737..85de365 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,8 +6,7 @@ python: - 3.5 install: -- pip install -r requirements-dev.txt -- pip install . +- pip install tox-travis - pip install coveralls deploy: @@ -20,8 +19,7 @@ deploy: branch: master script: -- py.test --cov-report= --cov=napalm_panos test/ -- pylama . +- tox after_success: - coveralls diff --git a/setup.cfg b/setup.cfg index 495a948..c1c45e8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,16 +1,15 @@ [pylama] linters = mccabe,pep8,pyflakes ignore = D203,C901 +skip = build/*,.tox/* [pylama:pep8] max_line_length = 100 -[tool:pytest] -addopts = --cov=./ -vs +[pytest] +addopts = --cov=napalm_panos --cov-report term-missing -vs --pylama json_report = report.json jsonapi = true [coverage:run] -include = - napalm_panos/* - +source = napalm_panos diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..5ae5d81 --- /dev/null +++ b/tox.ini @@ -0,0 +1,9 @@ +[tox] +envlist = py27,py34,py35 + +[testenv] +deps = + -rrequirements-dev.txt + +commands= + py.test