From a15352f509a0da9a646cce3c07829b9122ef5057 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Fri, 31 May 2019 17:03:31 +0000 Subject: [PATCH] Switch cookiecutter tox job to use test_tox_targets.sh This verifies that the thing we generate will actually pass its defined tests. It's a superset of the tests we were running before. Also adds git config calls to make this work in the gate where the user details aren't already set. Change-Id: I96810e7cf132304ca700ebedd0c43e3d4d56bbd4 --- tools/test_tox_targets.sh | 4 +++- tox.ini | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/test_tox_targets.sh b/tools/test_tox_targets.sh index 9c47c71..9eafbba 100755 --- a/tools/test_tox_targets.sh +++ b/tools/test_tox_targets.sh @@ -18,6 +18,8 @@ cd $project_dir # PBR requires a git repo for versioning git init . # openstackdocstheme requires commits for last modified calculation +git config user.email "test@example.com" +git config user.name "Test Name" git add . git commit -m "Test commit" @@ -28,4 +30,4 @@ def test_api(): pass EOF -tox -e pep8,py27,py36,py37,docs,lower-constraints,cover +tox -e pep8,py27,py36,docs,lower-constraints,cover diff --git a/tox.ini b/tox.ini index ae1ea0d..ae731b3 100644 --- a/tox.ini +++ b/tox.ini @@ -6,5 +6,4 @@ skipsdist = True [testenv:cookiecutter] deps = cookiecutter commands = - mkdir -p {envdir}/tmp - {toxinidir}/tools/test_template.sh {envdir}/tmp + {toxinidir}/tools/test_tox_targets.sh