mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Merge pull request #11825 from ansible/tox-py24
Split py24 testing into its own tox section
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
sudo: false
|
||||
language: python
|
||||
env:
|
||||
- TOKENV=py24
|
||||
- TOXENV=py26
|
||||
- TOXENV=py27
|
||||
addons:
|
||||
@@ -12,7 +13,8 @@ addons:
|
||||
install:
|
||||
- pip install tox PyYAML Jinja2 sphinx
|
||||
script:
|
||||
- tox
|
||||
- if test x"$TOKENV" != x'py24' ; then tox ; fi
|
||||
- if test x"$TOKENV" = x'py24' ; then python2.4 -V && python2.4 -m compileall -fq -x 'module_utils/(a10|rax|openstack|ec2|gce).py' lib/ansible/module_utils ; fi
|
||||
#- make -C docsite all
|
||||
after_success:
|
||||
- coveralls
|
||||
|
||||
5
tox.ini
5
tox.ini
@@ -8,16 +8,16 @@ whitelist_externals = make
|
||||
|
||||
[testenv:py26]
|
||||
commands =
|
||||
python --version
|
||||
python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py' .
|
||||
python2.4 -m compileall -fq -x 'module_utils/(a10|rax|openstack|ec2|gce).py' lib/ansible/module_utils
|
||||
make tests
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
whitelist_externals =
|
||||
make
|
||||
python2.4
|
||||
|
||||
[testenv:py27]
|
||||
commands =
|
||||
python --version
|
||||
python -m compileall -fq -x 'test|samples' .
|
||||
make tests
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
@@ -25,6 +25,7 @@ whitelist_externals = make
|
||||
|
||||
[testenv:py34]
|
||||
commands =
|
||||
python --version
|
||||
python -m compileall -fq -x 'lib/ansible/module_utils' lib
|
||||
make tests
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
|
||||
Reference in New Issue
Block a user