summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorjohnthagen <johnthagen@gmail.com>2020-01-25 14:20:06 -0500
committerjohnthagen <johnthagen@gmail.com>2020-01-25 14:20:06 -0500
commit77d0887fba18b3e113eb89969bb8ce67ad7728ce (patch)
treef6e2656699796e80b7c259d00bce03b08aba2549 /tox.ini
parent3324bb637e8c7ef4358708c2891f755d7a962294 (diff)
downloadjsonschema-77d0887fba18b3e113eb89969bb8ce67ad7728ce.tar.gz
Add tox/CI test for license file
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 9 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 2eedfc5..5b2ef35 100644
--- a/tox.ini
+++ b/tox.ini
@@ -126,3 +126,12 @@ commands =
{envpython} -m coverage run --rcfile={toxinidir}/.coveragerc -m twisted.trial jsonschema
{envpython} -m coverage xml -o {envtmpdir}/coverage.xml
codecov --required --disable gcov --file {envtmpdir}/coverage.xml
+
+[testenv:check-package-license-file]
+recreate = True
+deps =
+ pip-licenses
+commands =
+ pip install {toxinidir}
+ pip-licenses --from=mixed --with-license-file --format=json --output-file={toxinidir}/license_report.json
+ {envpython} {toxinidir}/test_license.py