Merge pull request #1065 from sivel/gating

Use ansible-testing project to validate basic module requirements
reviewable/pr18780/r1
Brian Coca 9 years ago
commit 637c04cbcf

@ -9,8 +9,12 @@ addons:
packages:
- python2.4
- python2.6
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
script:
- python2.4 -m compileall -fq -x 'cloud/|monitoring/zabbix.*\.py|/dnf\.py|/layman\.py|/maven_artifact\.py|clustering/(consul.*|znode)\.py|notification/pushbullet\.py' .
- python2.6 -m compileall -fq .
- python2.7 -m compileall -fq .
- ansible-validate-modules --exclude 'cloud/amazon/route53_zone\.py|cloud/amazon/sns_topic\.py|messaging/rabbitmq_binding\.py|messaging/rabbitmq_exchange\.py|messaging/rabbitmq_queue\.py|monitoring/circonus_annotation\.py|network/snmp_facts\.py|notification/sns\.py' .
#- ./test-docs.sh extras

@ -18,9 +18,6 @@
# You should have received a copy of the GNU General Public License
# along with this software. If not, see <http://www.gnu.org/licenses/>.
# import module snippets
from ansible.module_utils.basic import *
BINS = dict(
ipv4='iptables',
ipv6='ip6tables',
@ -363,5 +360,8 @@ def main():
module.exit_json(**args)
# import module snippets
from ansible.module_utils.basic import *
if __name__ == '__main__':
main()

@ -54,5 +54,3 @@ def main():
from ansible.module_utils.basic import *
main()

Loading…
Cancel
Save