diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-06-29 09:27:45 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-06-29 09:27:45 -0700 |
commit | ae4f53f592edd4fab851bf839077873c0b55254a (patch) | |
tree | 39713db9ca170065ce372bcd7ac2ec0d40b71733 | |
parent | a5bba2488f2775da8cb08f4b9fb3f3c5d230ad2b (diff) | |
download | ansible-modules-core-ae4f53f592edd4fab851bf839077873c0b55254a.tar.gz |
Try to make travis check documentation for module prs
-rw-r--r-- | .travis.yml | 7 | ||||
-rwxr-xr-x | test-docs.sh | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 0e3a2af2..5e6c109b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,15 @@ addons: packages: - python2.4 - python2.6 + - python-jinja2 + - python-yaml + - python-pkg-resources + - python-setuptools + - python-six + - python-pycrypto script: - python2.4 -m compileall -fq -x 'cloud/' . - python2.4 -m compileall -fq cloud/amazon/_ec2_ami_search.py cloud/amazon/ec2_facts.py - python2.6 -m compileall -fq . - python2.7 -m compileall -fq . + - ./test-docs.sh core diff --git a/test-docs.sh b/test-docs.sh new file mode 100755 index 00000000..60d92212 --- /dev/null +++ b/test-docs.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +MOD_REPO="$1" + +git clone https://github.com/ansible/ansible ansible-checkout +cd ansible-checkout +git submodule update --init +rm -rf "lib/ansible/modules/$MOD_REPO" +ln -s ../ "lib/ansible/modules/$MOD_REPO" + +. ./hacking/env-setup +bin/ansible-doc -l +make -C docsite |