Permalink
Browse files

[feature] add tox testing support

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 16, 2016
1 parent 7050779 commit 2ed555045390db55b224abe3d474492334fccf7f
Showing with 22 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. 0 requirements.txt
  3. +5 −0 test-requirements.txt
  4. +14 −0 tox.ini
View
@@ -1,2 +1,5 @@
*.pyc
*.swp
+.coverage
+.tox/
+lshell.egg-info/
View
No changes.
View
@@ -0,0 +1,5 @@
+bandit
+coverage
+flake8
+nose
+pexpect
View
14 tox.ini
@@ -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.