summaryrefslogtreecommitdiff
path: root/noxfile.py
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-08-11 11:00:29 -0400
committeranselor <anselor@gmail.com>2020-08-11 13:01:25 -0400
commit115143a1a3626cd651d3d18affd13cd60e1d06c8 (patch)
tree7ff5470062466a02251d6597533b2183a507a8b8 /noxfile.py
parent9d314de00100642679abda2cd5e7e0302cde9679 (diff)
downloadcmd2-git-115143a1a3626cd651d3d18affd13cd60e1d06c8.tar.gz
Adding explicit python 3.5.2 test to nox, travis
Python 3.5.2 introduced a bug in typing that was fixed in 3.5.3. The bug in typing prevents the latest nox from running properly. Ubuntu 16.04 stopped at python 3.5.2. To work-around, force an older version of nox when testing 3.5.2
Diffstat (limited to 'noxfile.py')
-rw-r--r--noxfile.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/noxfile.py b/noxfile.py
index 4da881aa..7d51a948 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -14,7 +14,7 @@ def docs(session):
'-d', '{}/doctrees'.format(tmpdir), '.', '{}/html'.format(tmpdir))
-@nox.session(python=['3.5.3', '3.5', '3.6', '3.7', '3.8', '3.9'])
+@nox.session(python=['3.5.2', '3.5.3', '3.5', '3.6', '3.7', '3.8', '3.9'])
@nox.parametrize('plugin', [None,
'ext_test',
'template',
@@ -29,10 +29,9 @@ def tests(session, plugin):
session.install('invoke', 'codecov', 'coverage')
session.run('codecov')
else:
- session.install('invoke', '.')
+ session.install('invoke', './', 'plugins/{}[test]'.format(plugin))
# cd into test directory to run other unit test
- session.install('plugins/{}[test]'.format(plugin))
session.run('invoke',
'plugin.{}.pytest'.format(plugin.replace('_', '-')),
'--junit',