diff --git a/.gitignore b/.gitignore index 713291330..cf085844f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ publish-docs/ target/ /build-*.log.gz +/generated # Packages *.egg diff --git a/tools/copy_pom b/tools/copy_pom new file mode 100755 index 000000000..dd9c1c27e --- /dev/null +++ b/tools/copy_pom @@ -0,0 +1,6 @@ +#!/bin/bash + +TARGET=$1 + +echo "copying pom.xml for $TARGET" +cp pom.xml generated/$TARGET/pom.xml diff --git a/tox.ini b/tox.ini index 4421f27e4..d44d705b1 100644 --- a/tox.ini +++ b/tox.ini @@ -40,3 +40,19 @@ commands = openstack-doc-test --check-build --publish --only-book api-ref --only-book api-ref-guides # We need to move api-ref-guides to the proper place: mv publish-docs/api-ref-guides publish-docs/api-ref/ + +[testenv:buildlang] +# Run as "tox -e buildlang -- $LANG" +# openstack-generate-docbook needs xml2po which cannot be installed +# in the venv. Since it's installed in the system, let's +# use sitepackages. +# For now this only builds api-quick-start +sitepackages=True +whitelist_externals = bash +commands = + openstack-generate-docbook -l {posargs} -b api-quick-start -r ./ + # tox 1.7 does not parse the following line: + # cp doc/pom.xml generated/{posargs}/pom.xml + # Thus replaced by the next one: + bash ./tools/copy_pom {posargs} + openstack-doc-test --check-build --publish -l {posargs} --only-book api-quick-start