Move to tox
This commit is contained in:
4 files changed
+22
-18
No files matched your search
+8
-14
@@ -1,20 +1,9 @@
|
|||||||
language: python
|
language: python
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- 2.7
|
- 2.7
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install -r requirements-dev.txt
|
- pip install tox-travis
|
||||||
- pip install .
|
- pip install coveralls
|
||||||
|
|
||||||
script:
|
|
||||||
- py.test
|
|
||||||
- pylama .
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- coveralls
|
|
||||||
- if [ $TRAVIS_TAG ]; then curl -X POST https://readthedocs.org/build/napalm; fi
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: pypi
|
provider: pypi
|
||||||
user: dbarroso
|
user: dbarroso
|
||||||
@@ -23,3 +12,8 @@ deploy:
|
|||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
branch: master
|
branch: master
|
||||||
|
script:
|
||||||
|
- tox
|
||||||
|
after_success:
|
||||||
|
- coveralls
|
||||||
|
- if [ $TRAVIS_TAG ]; then curl -X POST https://readthedocs.org/build/napalm; fi
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
coveralls
|
||||||
pytest
|
pytest
|
||||||
pytest-cov
|
pytest-cov
|
||||||
pytest-json
|
pytest-json
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
[pylama]
|
[pylama]
|
||||||
linters = mccabe,pep8,pyflakes
|
linters = mccabe,pep8,pyflakes
|
||||||
ignore = D203,C901
|
ignore = D203,C901
|
||||||
|
skip = build/*,.tox/*
|
||||||
|
|
||||||
[pylama:pep8]
|
[pylama:pep8]
|
||||||
max_line_length = 100
|
max_line_length = 100
|
||||||
|
|
||||||
[tool:pytest]
|
[pytest]
|
||||||
addopts = --cov=./ -vs
|
addopts = --cov=napalm_fortios --cov-report term-missing -vs --pylama
|
||||||
json_report = report.json
|
json_report = report.json
|
||||||
jsonapi = true
|
jsonapi = true
|
||||||
|
|
||||||
[coverage:run]
|
[coverage:run]
|
||||||
include =
|
source = napalm_fortios
|
||||||
napalm_fortios/*
|
|
||||||
Reference in new issue
Block a user