Move to tox

This commit is contained in:
Mircea Ulinic committed 2016-12-29 13:54:44 +00:00
1 parent b9a7d3e992
commit 3055c79c02
4 files changed
+22 -18

No files matched your search

+8 -14
View File
@@ -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
View File
@@ -1,3 +1,4 @@
coveralls
pytest
pytest-cov
pytest-json
+4 -4
View File
@@ -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
+9
View File
@@ -0,0 +1,9 @@
[tox]
envlist = py27
[testenv]
deps =
-rrequirements-dev.txt
commands=
py.test