summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini42
1 files changed, 31 insertions, 11 deletions
diff --git a/tox.ini b/tox.ini
index ef768847..92232201 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,7 @@ envlist = py27, py3, flake8, xenial, pylint
recreate = True
[testenv]
-commands = python -m nose {posargs:tests/unittests}
+commands = python -m nose {posargs:tests/unittests cloudinit}
setenv =
LC_ALL = en_US.utf-8
@@ -21,19 +21,22 @@ setenv =
LC_ALL = en_US.utf-8
[testenv:pylint]
-deps =
+deps =
# requirements
pylint==1.7.1
- # test-requirements because unit tests are now present in cloudinit tree
+ # test-requirements because unit tests are now present in cloudinit tree
-r{toxinidir}/test-requirements.txt
commands = {envpython} -m pylint {posargs:cloudinit}
[testenv:py3]
basepython = python3
-deps = -r{toxinidir}/test-requirements.txt
-commands = {envpython} -m nose {posargs:--with-coverage \
- --cover-erase --cover-branches --cover-inclusive \
- --cover-package=cloudinit tests/unittests cloudinit}
+deps =
+ nose-timer
+ -r{toxinidir}/test-requirements.txt
+commands = {envpython} -m nose --with-timer --timer-top-n 10 \
+ {posargs:--with-coverage --cover-erase --cover-branches \
+ --cover-inclusive --cover-package=cloudinit \
+ tests/unittests cloudinit}
[testenv:py27]
basepython = python2.7
@@ -61,13 +64,14 @@ deps =
# requirements
jinja2==2.8
pyyaml==3.11
- PrettyTable==0.7.2
oauthlib==1.0.3
pyserial==3.0.1
configobj==5.0.6
requests==2.9.1
- # jsonpatch ubuntu is 1.10, not 1.19 (#839779)
- jsonpatch==1.10
+ # jsonpatch in xenial is 1.10, not 1.19 (#839779). The oldest version
+ # to work with python3.6 is 1.16 as found in Artful. To keep default
+ # invocation of 'tox' happy, accept the difference in version here.
+ jsonpatch==1.16
six==1.10.0
# test-requirements
httpretty==0.8.6
@@ -84,7 +88,6 @@ deps =
argparse==1.2.1
jinja2==2.2.1
pyyaml==3.10
- PrettyTable==0.7.2
oauthlib==0.6.0
configobj==4.6.0
requests==2.6.0
@@ -92,6 +95,21 @@ deps =
six==1.9.0
-r{toxinidir}/test-requirements.txt
+[testenv:opensusel42]
+basepython = python2.7
+commands = nosetests {posargs:tests/unittests}
+deps =
+ # requirements
+ argparse==1.3.0
+ jinja2==2.8
+ PyYAML==3.11
+ oauthlib==0.7.2
+ configobj==5.0.6
+ requests==2.11.1
+ jsonpatch==1.11
+ six==1.9.0
+ -r{toxinidir}/test-requirements.txt
+
[testenv:tip-pycodestyle]
commands = {envpython} -m pycodestyle {posargs:cloudinit/ tests/ tools/}
deps = pycodestyle
@@ -114,3 +132,5 @@ commands = {envpython} -m tests.cloud_tests {posargs}
passenv = HOME
deps =
pylxd==2.2.4
+ paramiko==2.3.1
+ bzr+lp:simplestreams