Fix doc build in test script

There is some additional setup required for the docs to be built.
We need to have an implementation so there is something to add to
the api docs, and openstackdocstheme requires a git commit so it
can get the last modified timestamp. Also, we no longer generate a
Changelog since we aren't using pbr now so we need to remove that
or we have a missing file.

Change-Id: Ic79aa0fb8f7e5813bec420c8b2690b0e9ef79cc2
This commit is contained in:
Ben Nemec 2019-05-31 15:39:00 +00:00
parent 274640e97b
commit 62e5b0c629
3 changed files with 10 additions and 2 deletions

View File

@ -1 +0,0 @@
.. include:: ../../ChangeLog

View File

@ -14,7 +14,6 @@ Contents
reference/index
usage
contributing
history
Indices and tables
==================

View File

@ -17,5 +17,15 @@ cd $project_dir
# PBR requires a git repo for versioning
git init .
# openstackdocstheme requires commits for last modified calculation
git add .
git commit -m "Test commit"
# Create an "implementation" so we have an API to document
cat > $project_dir/oslo_testing/test.py << EOF
def test_api():
"""A docstring"""
pass
EOF
tox -e pep8,py27,py36,py37,docs,lower-constraints,cover