diff options
| author | Eric Lin <anselor@gmail.com> | 2020-07-07 13:59:43 -0400 |
|---|---|---|
| committer | anselor <anselor@gmail.com> | 2020-07-08 14:51:31 -0400 |
| commit | ff64eff8854c9b52a1f48e4b843e9a738d2b388d (patch) | |
| tree | 734419988bbb26a31ecc1caa9e18b0a6686cc6f3 /noxfile.py | |
| parent | bc50e370c6113ada43acbfaf94d211f3917a7870 (diff) | |
| download | cmd2-git-ff64eff8854c9b52a1f48e4b843e9a738d2b388d.tar.gz | |
Swap out tox for nox
Diffstat (limited to 'noxfile.py')
| -rw-r--r-- | noxfile.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/noxfile.py b/noxfile.py new file mode 100644 index 00000000..483369f9 --- /dev/null +++ b/noxfile.py @@ -0,0 +1,18 @@ +import nox + + +@nox.session(python=['3.7']) +def docs(session): + session.install('sphinx', 'sphinx-rtd-theme', '.') + session.chdir('docs') + tmpdir = session.create_tmp() + + session.run('sphinx-build', '-a', '-W', '-T', '-b', 'html', + '-d', '{}/doctrees'.format(tmpdir), '.', '{}/html'.format(tmpdir)) + + +@nox.session(python=['3.5', '3.6', '3.7', '3.8', '3.9']) +def tests(session): + session.install('invoke', './[test]') + session.run('invoke', 'pytest', '--junit', '--no-pty') + session.run('codecov') |
