Skip to content

Commit 5da9c6a

Browse files
committed
Add testing of docs to the core repo
1 parent a5bba24 commit 5da9c6a

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ script:
1414
- python2.4 -m compileall -fq cloud/amazon/_ec2_ami_search.py cloud/amazon/ec2_facts.py
1515
- python2.6 -m compileall -fq .
1616
- python2.7 -m compileall -fq .
17+
- ./test-docs.sh core

test-docs.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
set -x
3+
4+
CHECKOUT_DIR=".ansible-checkout"
5+
MOD_REPO="$1"
6+
7+
# Hidden file to avoid the module_formatter recursing into the checkout
8+
git clone https://github.com/ansible/ansible "$CHECKOUT_DIR"
9+
cd "$CHECKOUT_DIR"
10+
git submodule update --init
11+
rm -rf "lib/ansible/modules/$MOD_REPO"
12+
ln -s "$TRAVIS_BUILD_DIR/" "lib/ansible/modules/$MOD_REPO"
13+
14+
pip install -U Jinja2 PyYAML setuptools six pycrypto sphinx
15+
16+
. ./hacking/env-setup
17+
PAGER=/bin/cat bin/ansible-doc -l
18+
if [ $? -ne 0 ] ; then
19+
exit $?
20+
fi
21+
make -C docsite

0 commit comments

Comments
 (0)