Skip to content

Commit

Permalink
Merge pull request #32 from napalm-automation/FIX-SIGNATURES
Browse files Browse the repository at this point in the history
Move to tox
  • Loading branch information
dbarrosop authored Dec 29, 2016
2 parents b9a7d3e + 3055c79 commit b6026ad
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
22 changes: 8 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coveralls
pytest
pytest-cov
pytest-json
Expand Down
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[tox]
envlist = py27

[testenv]
deps =
-rrequirements-dev.txt

commands=
py.test

0 comments on commit b6026ad

Please sign in to comment.