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