Update tox.ini to use ansible-test.

pull/26313/head
Matt Clay 7 years ago
parent 46514de5e6
commit 7ab4a889ad

@ -182,7 +182,7 @@ def parse_args():
integration.add_argument('--python',
metavar='VERSION',
choices=SUPPORTED_PYTHON_VERSIONS,
choices=SUPPORTED_PYTHON_VERSIONS + ('default',),
help='python version: %s' % ', '.join(SUPPORTED_PYTHON_VERSIONS))
integration.add_argument('--start-at',
@ -281,7 +281,7 @@ def parse_args():
compiler.add_argument('--python',
metavar='VERSION',
choices=COMPILE_PYTHON_VERSIONS,
choices=COMPILE_PYTHON_VERSIONS + ('default',),
help='python version: %s' % ', '.join(COMPILE_PYTHON_VERSIONS))
add_lint(compiler)
@ -313,7 +313,7 @@ def parse_args():
sanity.add_argument('--python',
metavar='VERSION',
choices=SUPPORTED_PYTHON_VERSIONS,
choices=SUPPORTED_PYTHON_VERSIONS + ('default',),
help='python version: %s' % ', '.join(SUPPORTED_PYTHON_VERSIONS))
sanity.add_argument('--base-branch',

@ -1,16 +0,0 @@
#
# Test requirements
#
nose
mock >= 1.0.1, < 1.1
passlib
coverage
coveralls
unittest2
redis
python3-memcached
python-systemd
botocore
boto3
pytest

@ -1,18 +0,0 @@
#
# Test requirements
#
nose
mock >= 1.0.1, < 1.1
passlib
coverage
coveralls
unittest2
redis
python-memcached
python-systemd
cryptography
pycrypto
botocore
boto3
pytest

@ -1,26 +1,24 @@
[tox]
envlist = py26,py27,py35,py36
[testenv:py35]
deps = -r{toxinidir}/test/utils/tox/requirements-py3.txt
[testenv:py36]
deps = -r{toxinidir}/test/utils/tox/requirements-py3.txt
[testenv]
deps = -r{toxinidir}/test/utils/tox/requirements.txt
whitelist_externals = make
deps = -c{toxinidir}/test/runner/requirements/constraints.txt
-r{toxinidir}/test/runner/requirements/ansible-test.txt
-r{toxinidir}/test/runner/requirements/sanity.txt
-r{toxinidir}/test/runner/requirements/units.txt
commands =
python --version
py26: python -m compileall -fq -x 'test/samples|contrib/inventory/vagrant.py' lib test contrib
py27: python -m compileall -fq -x 'test/samples' lib test contrib
py3{5,6}: python -m compileall -fq -x 'test/samples|lib/ansible/modules' lib test contrib
make tests
# The recommended method of running tests with tox is to execute
# ansible-test directly and use the --tox and --python options.
# The commands below are provided as a convenience for those who
# prefer to run tox directly instead of through ansible-test.
{toxinidir}/test/runner/ansible-test compile --python default -v
{toxinidir}/test/runner/ansible-test sanity --python default -v
{toxinidir}/test/runner/ansible-test units --python default -v
passenv =
# Pass HOME to the test environment to avoid the missing HOME env
# variable error. See issue: #20424
HOME
TEST_FLAGS
[flake8]

Loading…
Cancel
Save