Improve test-languages.sh
Add setup of user-guide and user-guide-admin for publishing target, this was missing before and thus these guides were not build.. Be more verbose in setting up directories and invocation of openstack-doc-test. Change-Id: I3d41dd813376624238903b38c779b53e7b93547c
This commit is contained in:
parent
03852c62b7
commit
7c2830a4f7
@ -4,6 +4,7 @@ function setup_directory {
|
|||||||
SET_LANG=$1
|
SET_LANG=$1
|
||||||
shift
|
shift
|
||||||
for BOOK_DIR in "$@" ; do
|
for BOOK_DIR in "$@" ; do
|
||||||
|
echo " $BOOK_DIR"
|
||||||
openstack-generate-docbook -l $SET_LANG -b $BOOK_DIR
|
openstack-generate-docbook -l $SET_LANG -b $BOOK_DIR
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@ -14,6 +15,7 @@ function setup_lang {
|
|||||||
shift
|
shift
|
||||||
echo "Setting up files for $SET_LANG"
|
echo "Setting up files for $SET_LANG"
|
||||||
echo "======================="
|
echo "======================="
|
||||||
|
echo " Directories:"
|
||||||
setup_directory $SET_LANG 'common' 'glossary' "$@"
|
setup_directory $SET_LANG 'common' 'glossary' "$@"
|
||||||
cp doc/pom.xml generated/$SET_LANG/pom.xml
|
cp doc/pom.xml generated/$SET_LANG/pom.xml
|
||||||
}
|
}
|
||||||
@ -26,7 +28,7 @@ function test_ja {
|
|||||||
setup_directory 'ja' 'high-availability-guide' \
|
setup_directory 'ja' 'high-availability-guide' \
|
||||||
'install-guide' 'security-guide' 'user-guide' \
|
'install-guide' 'security-guide' 'user-guide' \
|
||||||
'user-guide-admin'
|
'user-guide-admin'
|
||||||
openstack-doc-test --check-build -l ja \
|
openstack-doc-test -v --check-build -l ja \
|
||||||
--only-book high-availability-guide \
|
--only-book high-availability-guide \
|
||||||
--only-book install-guide \
|
--only-book install-guide \
|
||||||
--only-book user-guide \
|
--only-book user-guide \
|
||||||
@ -36,13 +38,14 @@ function test_ja {
|
|||||||
;;
|
;;
|
||||||
publish-install)
|
publish-install)
|
||||||
setup_directory 'ja' 'install-guide'
|
setup_directory 'ja' 'install-guide'
|
||||||
openstack-doc-test --publish --check-build -l ja \
|
openstack-doc-test -v --publish --check-build -l ja \
|
||||||
--only-book install-guide
|
--only-book install-guide
|
||||||
RET=$?
|
RET=$?
|
||||||
;;
|
;;
|
||||||
publish)
|
publish)
|
||||||
setup_directory 'ja' 'security-guide' 'high-availability-guide'
|
setup_directory 'ja' 'high-availability-guide' \
|
||||||
openstack-doc-test --publish --check-build -l ja \
|
'security-guide' 'user-guide' 'user-guide-admin'
|
||||||
|
openstack-doc-test -v --publish --check-build -l ja \
|
||||||
--only-book high-availability-guide \
|
--only-book high-availability-guide \
|
||||||
--only-book user-guide \
|
--only-book user-guide \
|
||||||
--only-book user-guide-admin \
|
--only-book user-guide-admin \
|
||||||
|
Loading…
Reference in New Issue
Block a user