mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Run Travis integration tests with the right Python version
This commit is contained in:
parent
eb60ce1b6e
commit
29202454c6
1 changed files with 12 additions and 8 deletions
20
.travis.yml
20
.travis.yml
|
@ -1,18 +1,22 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: python
|
language: python
|
||||||
env:
|
matrix:
|
||||||
- TOKENV=py24
|
include:
|
||||||
- TOXENV=py26
|
- env: TOKENV=py24 INTEGRATION=no
|
||||||
- TOXENV=py27
|
- env: TOXENV=py26 INTEGRATION=yes
|
||||||
- TOXENV=py34
|
python: 2.6
|
||||||
- TOXENV=py35
|
- env: TOXENV=py27 INTEGRATION=yes
|
||||||
|
python: 2.7
|
||||||
|
- env: TOXENV=py34 INTEGRATION=no
|
||||||
|
python: 3.4
|
||||||
|
- env: TOXENV=py35 INTEGRATION=no
|
||||||
|
python: 3.5
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- deadsnakes
|
- deadsnakes
|
||||||
packages:
|
packages:
|
||||||
- python2.4
|
- python2.4
|
||||||
- python3.5-dev
|
|
||||||
install:
|
install:
|
||||||
- pip install tox PyYAML Jinja2 sphinx
|
- pip install tox PyYAML Jinja2 sphinx
|
||||||
script:
|
script:
|
||||||
|
@ -21,6 +25,6 @@ script:
|
||||||
- if test x"$TOKENV" != x'py24' ; then tox ; fi
|
- 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
|
- 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
|
||||||
- source ./hacking/env-setup && cd test/integration/ && make test_var_precedence
|
- if test x"$INTEGRATION" = x'yes' ; then source ./hacking/env-setup && cd test/integration/ && make test_var_precedence ; fi
|
||||||
after_success:
|
after_success:
|
||||||
- coveralls
|
- coveralls
|
||||||
|
|
Loading…
Reference in a new issue