Navigation Menu

Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
Setup travis to run tests through tox (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
brburns authored and balloob committed Mar 11, 2017
1 parent 3d01cb5 commit d59d5c3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 18 deletions.
25 changes: 14 additions & 11 deletions .travis.yml
@@ -1,15 +1,18 @@
sudo: false
language: python
matrix:
fast_finish: true
include:
- python: "3.4.2"
env: TOXENV=py34
- python: "3.4.2"
env: TOXENV=lint
- python: "3.5"
env: TOXENV=py35
- python: "3.6"
env: TOXENV=py36
cache:
directories:
- $HOME/.cache/pip
python:
- 3.4.2
install:
- pip install -r requirements.txt
- pip install pylint flake8
script:
- pylint netdisco
- flake8 netdisco
matrix:
fast_finish: true
install: pip install -U tox
language: python
script: tox
4 changes: 4 additions & 0 deletions setup.cfg
@@ -1,2 +1,6 @@
[bdist_wheel]
universal = 1

[tool:pytest]
testpaths = tests
norecursedirs = .git
25 changes: 18 additions & 7 deletions tox.ini
@@ -1,9 +1,20 @@
[tox]
envlist = py27,py34
envlist = py34, py35, py36, lint
skip_missing_interpreters = True

[testenv]
deps=
flake8
pylint
commands=
flake8 netdisco
pylint netdisco
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/netdisco
deps =
-r{toxinidir}/requirements.txt
pytest
commands =
py.test

[testenv:lint]
deps =
flake8
pylint
commands =
flake8 netdisco
pylint netdisco

0 comments on commit d59d5c3

Please sign in to comment.