[saem-devel] [PATCH 1 of 2 sherpa] [test] add py27 test in tox config

Philippe Pepiot philippe.pepiot at logilab.fr
Wed Feb 22 18:07:35 CET 2017


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1487783189 -3600
#      Wed Feb 22 18:06:29 2017 +0100
# Node ID c7c57726ad9ba66c182b6f2c8f147dff3de3375f
# Parent  79cf56fbfb1b8b81e5fafd0a7747d9b81680697a
# Available At https://hg.logilab.org/review/cubes/sherpa
#              hg pull https://hg.logilab.org/review/cubes/sherpa -r c7c57726ad9b
# Tested at https://jenkins.logilab.org/job/cubicweb-sherpa/13/
[test] add py27 test in tox config

diff --git a/MANIFEST.in b/MANIFEST.in
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -5,5 +5,7 @@ include doc/Makefile doc/conf.py doc/*.r
 include views/templates/*.jinja2
 recursive-include data *.gif *.png *.ico *.css *.js *.otf *.ttf *.txt
 recursive-include i18n *.po
+include dev-requirements.txt
+include test/*.py test/data/bootstrap_cubes
 
 prune docker
diff --git a/dev-requirements.txt b/dev-requirements.txt
new file mode 100644
--- /dev/null
+++ b/dev-requirements.txt
@@ -0,0 +1,1 @@
+pytest
diff --git a/test/data/bootstrap_cubes b/test/data/bootstrap_cubes
new file mode 100644
--- /dev/null
+++ b/test/data/bootstrap_cubes
@@ -0,0 +1,1 @@
+sherpa
diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -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



More information about the saem-devel mailing list