Merge "Add pypi publishing testing"
This commit is contained in:
commit
5ec71e7579
@ -20,3 +20,4 @@ testrepository>=0.0.18
|
|||||||
testscenarios>=0.4
|
testscenarios>=0.4
|
||||||
testtools>=1.4.0
|
testtools>=1.4.0
|
||||||
twine
|
twine
|
||||||
|
wheel
|
||||||
|
14
tox.ini
14
tox.ini
@ -10,11 +10,14 @@ setenv =
|
|||||||
VIRTUAL_ENV={envdir}
|
VIRTUAL_ENV={envdir}
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = python setup.py test
|
commands = python setup.py test
|
||||||
|
whitelist_externals =
|
||||||
|
bash
|
||||||
|
rm
|
||||||
|
|
||||||
[testenv:linters]
|
[testenv:linters]
|
||||||
# py3 linters are able to stop more than py2 ones
|
# py3 linters are able to stop more than py2 ones
|
||||||
basepython = python3
|
basepython = python3
|
||||||
whitelist_externals = bash
|
|
||||||
extras = insights
|
extras = insights
|
||||||
commands =
|
commands =
|
||||||
{[testenv:pep8]commands}
|
{[testenv:pep8]commands}
|
||||||
@ -23,6 +26,7 @@ commands =
|
|||||||
pykwalify -d browbeat-complete.yaml -s browbeat/schema/browbeat.yml
|
pykwalify -d browbeat-complete.yaml -s browbeat/schema/browbeat.yml
|
||||||
bash -c "set -e; for config in $(ls conf/); do \
|
bash -c "set -e; for config in $(ls conf/); do \
|
||||||
echo conf/$config; pykwalify -d conf/$config -s browbeat/schema/browbeat.yml; done"
|
echo conf/$config; pykwalify -d conf/$config -s browbeat/schema/browbeat.yml; done"
|
||||||
|
{[testenv:dist]commands}
|
||||||
|
|
||||||
[testenv:dist]
|
[testenv:dist]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
@ -74,6 +78,14 @@ commands = python setup.py build_sphinx
|
|||||||
basepython = python3
|
basepython = python3
|
||||||
commands = oslo_debug_helper {posargs}
|
commands = oslo_debug_helper {posargs}
|
||||||
|
|
||||||
|
[testenv:publish]
|
||||||
|
envdir = {toxworkdir}/py27
|
||||||
|
commands =
|
||||||
|
rm -rf dist/*
|
||||||
|
rm -rf build/*
|
||||||
|
python setup.py sdist bdist_wheel
|
||||||
|
twine upload dist/*
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# E123, E125 skipped as they are invalid PEP-8.
|
# E123, E125 skipped as they are invalid PEP-8.
|
||||||
show-source = True
|
show-source = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user