2016-11-17 09:43:17 -06:00
|
|
|
[tox]
|
|
|
|
minversion=2.3.1
|
2018-03-23 06:22:28 -05:00
|
|
|
envlist=py27,py36,pylint2,pylint3,pypi
|
2016-11-17 09:43:17 -06:00
|
|
|
skip_missing_interpreters=true
|
|
|
|
skipsdist=true
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
# always re-create virtual env. A special install helper is used to configure,
|
|
|
|
# build and install packages.
|
|
|
|
recreate=True
|
|
|
|
install_command={toxinidir}/.tox-install.sh wheel_bundle {envpython} {envsitepackagesdir} {packages}
|
|
|
|
changedir={envdir}
|
|
|
|
setenv=
|
|
|
|
HOME={envtmpdir}
|
|
|
|
deps=
|
2017-03-29 04:20:21 -05:00
|
|
|
ipaclient[csrgen]
|
2016-11-17 09:43:17 -06:00
|
|
|
ipatests
|
|
|
|
commands=
|
|
|
|
{envbindir}/ipa --help
|
2018-03-19 14:11:01 -05:00
|
|
|
{envpython} -bb {envbindir}/ipa-run-tests --ipaclient-unittests --junitxml={envdir}/junit-{envname}.xml
|
2016-11-17 09:43:17 -06:00
|
|
|
|
|
|
|
[testenv:pylint2]
|
|
|
|
basepython=python2.7
|
|
|
|
deps=
|
2017-03-29 04:20:21 -05:00
|
|
|
ipaclient[csrgen,otptoken_yubikey]
|
2016-11-17 09:43:17 -06:00
|
|
|
pylint
|
|
|
|
commands=
|
|
|
|
{envpython} -m pylint \
|
|
|
|
--rcfile={toxinidir}/pylintrc \
|
|
|
|
--load-plugins pylint_plugins \
|
|
|
|
{envsitepackagesdir}/ipaclient \
|
|
|
|
{envsitepackagesdir}/ipalib \
|
|
|
|
{envsitepackagesdir}/ipapython
|
|
|
|
|
|
|
|
[testenv:pylint3]
|
|
|
|
basepython=python3
|
|
|
|
deps={[testenv:pylint2]deps}
|
|
|
|
commands={[testenv:pylint2]commands}
|
|
|
|
|
|
|
|
[testenv:pypi]
|
|
|
|
recreate=True
|
|
|
|
install_command={toxinidir}/.tox-install.sh pypi_packages {envpython} {envsitepackagesdir} {packages}
|
|
|
|
changedir={envdir}
|
|
|
|
setenv=
|
|
|
|
HOME={envtmpdir}
|
|
|
|
deps=
|
|
|
|
pytest
|
|
|
|
ipaclient
|
|
|
|
# placeholder
|
|
|
|
ipaplatform
|
|
|
|
ipaserver
|
|
|
|
ipatests
|
|
|
|
commands=
|
|
|
|
{envpython} -m pytest {toxinidir}/pypi/test_placeholder.py
|
2018-04-27 05:29:17 -05:00
|
|
|
|
|
|
|
[pycodestyle]
|
|
|
|
# E402 module level import not at top of file
|
|
|
|
ignore = E402
|
|
|
|
|