Exclude git operations from checkbuild in tox.

To test checkbuild in tox, git operations are unnecessary.
And this enables to run checkbuild in anywhere.

Change-Id: Ida41de8adba66096d3d5ede1d6a2f71af73fe142
This commit is contained in:
Shu Muto 2017-05-29 09:42:42 +00:00
parent cfe08218dc
commit 3ac73d21cb
2 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,7 @@
#!/usr/bin/env sh
git init
git add .
git commit -a -m "Initial UI-Cookiecutter Commit."
if ! [ ${IGNORE_GIT} ]; then
git init
git add .
git commit -a -m "Initial UI-Cookiecutter Commit."
fi

View File

@ -16,6 +16,8 @@ deps =
commands = {posargs}
[testenv:checkbuild]
setenv =
IGNORE_GIT=1
commands =
rm -rf {envdir}/cafe-ui
cookiecutter --no-input --output-dir {envdir} {toxinidir}