Push python2.4 check into travis
This commit is contained in:
parent
53ae326603
commit
87cb7f8147
2 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
env:
|
env:
|
||||||
|
- TOKENV=py24
|
||||||
- TOXENV=py26
|
- TOXENV=py26
|
||||||
- TOXENV=py27
|
- TOXENV=py27
|
||||||
addons:
|
addons:
|
||||||
|
@ -12,7 +13,8 @@ addons:
|
||||||
install:
|
install:
|
||||||
- pip install tox PyYAML Jinja2 sphinx
|
- pip install tox PyYAML Jinja2 sphinx
|
||||||
script:
|
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
|
#- make -C docsite all
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
|
|
5
tox.ini
5
tox.ini
|
@ -8,16 +8,16 @@ whitelist_externals = make
|
||||||
|
|
||||||
[testenv:py26]
|
[testenv:py26]
|
||||||
commands =
|
commands =
|
||||||
|
python --version
|
||||||
python -m compileall -fq -x 'test|samples|contrib/inventory/vagrant.py' .
|
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
|
make tests
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
make
|
make
|
||||||
python2.4
|
|
||||||
|
|
||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
commands =
|
commands =
|
||||||
|
python --version
|
||||||
python -m compileall -fq -x 'test|samples' .
|
python -m compileall -fq -x 'test|samples' .
|
||||||
make tests
|
make tests
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
@ -25,6 +25,7 @@ whitelist_externals = make
|
||||||
|
|
||||||
[testenv:py34]
|
[testenv:py34]
|
||||||
commands =
|
commands =
|
||||||
|
python --version
|
||||||
python -m compileall -fq -x 'lib/ansible/module_utils' lib
|
python -m compileall -fq -x 'lib/ansible/module_utils' lib
|
||||||
make tests
|
make tests
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
|
|
Loading…
Reference in a new issue