mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07:00
Add testing of docs to the core repo
This commit is contained in:
parent
b261fd8d3e
commit
53c840e275
1 changed files with 21 additions and 0 deletions
21
lib/ansible/modules/test-docs.sh
Executable file
21
lib/ansible/modules/test-docs.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/sh
|
||||||
|
set -x
|
||||||
|
|
||||||
|
CHECKOUT_DIR=".ansible-checkout"
|
||||||
|
MOD_REPO="$1"
|
||||||
|
|
||||||
|
# Hidden file to avoid the module_formatter recursing into the checkout
|
||||||
|
git clone https://github.com/ansible/ansible "$CHECKOUT_DIR"
|
||||||
|
cd "$CHECKOUT_DIR"
|
||||||
|
git submodule update --init
|
||||||
|
rm -rf "lib/ansible/modules/$MOD_REPO"
|
||||||
|
ln -s "$TRAVIS_BUILD_DIR/" "lib/ansible/modules/$MOD_REPO"
|
||||||
|
|
||||||
|
pip install -U Jinja2 PyYAML setuptools six pycrypto sphinx
|
||||||
|
|
||||||
|
. ./hacking/env-setup
|
||||||
|
PAGER=/bin/cat bin/ansible-doc -l
|
||||||
|
if [ $? -ne 0 ] ; then
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
make -C docsite
|
Loading…
Add table
Add a link
Reference in a new issue