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
|
||||
|
||||
python:
|
||||
- 2.7
|
||||
|
||||
- 2.7
|
||||
install:
|
||||
- pip install -r requirements-dev.txt
|
||||
- pip install .
|
||||
|
||||
script:
|
||||
- py.test
|
||||
- pylama .
|
||||
|
||||
after_success:
|
||||
- coveralls
|
||||
- if [ $TRAVIS_TAG ]; then curl -X POST https://readthedocs.org/build/napalm; fi
|
||||
|
||||
- pip install tox-travis
|
||||
- pip install coveralls
|
||||
deploy:
|
||||
provider: pypi
|
||||
user: dbarroso
|
||||
@@ -23,3 +12,8 @@ deploy:
|
||||
on:
|
||||
tags: true
|
||||
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-cov
|
||||
pytest-json
|
||||
|
||||
@@ -1,15 +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_fortios --cov-report term-missing -vs --pylama
|
||||
json_report = report.json
|
||||
jsonapi = true
|
||||
|
||||
[coverage:run]
|
||||
include =
|
||||
napalm_fortios/*
|
||||
source = napalm_fortios
|
||||
Reference in new issue
Block a user