2015-05-08 20:42:06 +02:00
|
|
|
sudo: false
|
|
|
|
language: python
|
2015-05-14 03:19:03 +02:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2015-05-08 20:42:06 +02:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- deadsnakes
|
|
|
|
packages:
|
|
|
|
- python2.4
|
2015-05-14 03:19:03 +02:00
|
|
|
- python2.6
|
2016-05-12 23:44:15 +02:00
|
|
|
- python3.5
|
2016-05-20 00:34:59 +02:00
|
|
|
env:
|
|
|
|
global:
|
2016-05-23 15:36:25 +02:00
|
|
|
# 76 modules. Let's whittle this down!
|
2016-05-20 00:34:59 +02:00
|
|
|
- PY3_EXCLUDE_LIST="cloud/amazon/cloudformation.py
|
|
|
|
utilities/helper/accelerate.py
|
|
|
|
utilities/logic/async_status.py
|
2016-05-23 15:34:27 +02:00
|
|
|
utilities/logic/async_wrapper.py"
|
2016-05-16 00:53:52 +02:00
|
|
|
before_install:
|
|
|
|
- git config user.name "ansible"
|
|
|
|
- git config user.email "ansible@ansible.com"
|
|
|
|
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then git rebase $TRAVIS_BRANCH; fi;
|
2016-05-03 16:51:12 +02:00
|
|
|
install:
|
|
|
|
- pip install git+https://github.com/ansible/ansible.git@devel#egg=ansible
|
|
|
|
- pip install git+https://github.com/sivel/ansible-testing.git#egg=ansible_testing
|
2015-05-08 20:42:06 +02:00
|
|
|
script:
|
2015-05-08 20:42:06 +02:00
|
|
|
- python2.4 -m compileall -fq -x 'cloud/' .
|
2015-05-11 21:15:11 +02:00
|
|
|
- python2.4 -m compileall -fq cloud/amazon/_ec2_ami_search.py cloud/amazon/ec2_facts.py
|
2015-05-14 03:19:03 +02:00
|
|
|
- python2.6 -m compileall -fq .
|
|
|
|
- python2.7 -m compileall -fq .
|
2016-05-20 00:34:59 +02:00
|
|
|
- python3.4 -m compileall -fq . -x $(echo "$PY3_EXCLUDE_LIST"| tr ' ' '|')
|
|
|
|
- python3.5 -m compileall -fq . -x $(echo "$PY3_EXCLUDE_LIST"| tr ' ' '|')
|
2016-05-03 16:51:12 +02:00
|
|
|
- ansible-validate-modules --exclude 'utilities/' .
|
|
|
|
#- ansible-validate-modules --exclude 'cloud/amazon/ec2_lc\.py|cloud/amazon/ec2_scaling_policy\.py|cloud/amazon/ec2_scaling_policy\.py|cloud/amazon/ec2_asg\.py|cloud/azure/azure\.py|packaging/os/rhn_register\.py|network/openswitch/ops_template\.py|system/hostname\.py|utilities/' .
|
2015-07-01 16:24:39 +02:00
|
|
|
#- ./test-docs.sh core
|