Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
Move to tox
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenstad committed Dec 19, 2016
1 parent 5393a52 commit 6888077
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ python:
- 3.4
- 3.5
install:
- pip install -r requirements-dev.txt
- pip install .
- pip install tox-travis
- pip install coveralls
deploy:
provider: pypi
user: dbarroso
Expand All @@ -15,8 +15,8 @@ deploy:
tags: true
branch: master
script:
- py.test --cov-report= --cov=napalm_ios test/
- pylama .
- tox

after_success:
- coveralls
- if [ $TRAVIS_TAG ]; then curl -X POST https://readthedocs.org/build/napalm; fi
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ skip = build/*,.tox/*
max_line_length = 100

[tool:pytest]
addopts = --cov=./ -vs
addopts = --cov=napalm_ios --cov-report term-missing -vs --pylama
json_report = report.json
jsonapi = true

[coverage:run]
include =
napalm_ios/*
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,py34,py35

[testenv]
deps =
-rrequirements-dev.txt

commands=
py.test

0 comments on commit 6888077

Please sign in to comment.