[test] add py27 test in tox config
authorPhilippe Pepiot <philippe.pepiot@logilab.fr>
Wed, 22 Feb 2017 18:06:29 +0100
changeset 169 efcc1ab69722
parent 164 8f2a7cf7a620
child 176 e1f4c31c2414
[test] add py27 test in tox config
MANIFEST.in
dev-requirements.txt
test/data/bootstrap_cubes
tox.ini
--- a/MANIFEST.in	Fri Feb 24 09:39:00 2017 +0100
+++ b/MANIFEST.in	Wed Feb 22 18:06:29 2017 +0100
@@ -4,6 +4,8 @@
 include cubicweb_sherpa/views/templates/*.html
 include tox.ini
 include doc/Makefile doc/conf.py doc/*.rst
+include dev-requirements.txt
+include test/*.py test/data/bootstrap_cubes
 
 prune __pkginfo__.py
 prune docker
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dev-requirements.txt	Wed Feb 22 18:06:29 2017 +0100
@@ -0,0 +1,1 @@
+pytest
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/data/bootstrap_cubes	Wed Feb 22 18:06:29 2017 +0100
@@ -0,0 +1,1 @@
+sherpa
--- a/tox.ini	Fri Feb 24 09:39:00 2017 +0100
+++ b/tox.ini	Wed Feb 22 18:06:29 2017 +0100
@@ -1,6 +1,11 @@
 [tox]
-envlist = flake8,check-manifest
+envlist = py27,flake8,check-manifest
 
+[testenv]
+sitepackages = True
+deps =
+  -rdev-requirements.txt
+commands = {envpython} -m pytest {posargs:{toxinidir}/test}
 
 [testenv:check-manifest]
 skip_install = true