Skip to content

Commit

Permalink
[feature] add tox testing support
Browse files Browse the repository at this point in the history
This change adds tox test environment to easily run test suite
against py27 and py34 environment as well as flake8.
  • Loading branch information
TristanCacqueray authored and Ignace Mouzannar committed Feb 17, 2016
1 parent 7050779 commit 2ed5550
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*.pyc
*.swp
.coverage
.tox/
lshell.egg-info/
Empty file added requirements.txt
Empty file.
5 changes: 5 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
bandit
coverage
flake8
nose
pexpect
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[tox]
envlist = py27,py34,pep8
minversion = 1.6
skipsdist = True

[testenv]
passenv = HOME
usedevelop = True
deps = -rtest-requirements.txt
-rrequirements.txt
commands = nosetests -v --cover-package=lshell --with-coverage test/

[testenv:pep8]
commands = flake8 --ignore=E26,E501,E251,E225 bin lshell test

0 comments on commit 2ed5550

Please sign in to comment.