Skip to content

Commit

Permalink
Push python2.4 check into travis
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Aug 1, 2015
1 parent 53ae326 commit 87cb7f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
sudo: false
language: python
env:
- TOKENV=py24
- TOXENV=py26
- TOXENV=py27
addons:
Expand All @@ -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 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ 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
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
Expand Down

0 comments on commit 87cb7f8

Please sign in to comment.