Cookiecutter Template for new Oslo libraries
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
798 B

set -eux -o pipefail
# Wrapper around that runs tox tests in the resulting
# repo to verify that our out-of-the-box configuration is valid
tmp_dir=$(mktemp -d)
trap "rm -rf $tmp_dir" EXIT
tools_dir="$(dirname $0)"
$tools_dir/ "$tmp_dir"
cd $project_dir
# PBR requires a git repo for versioning
git init .
# openstackdocstheme requires commits for last modified calculation
git config ""
git config "Test Name"
git add .
git commit -m "Test commit"
# Create an "implementation" so we have an API to document
cat > $project_dir/oslo_testing/ << EOF
def test_api():
"""A docstring"""
tox -e pep8,py36,docs,lower-constraints,cover,releasenotes