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:
parent
cfe08218dc
commit
3ac73d21cb
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
if ! [ ${IGNORE_GIT} ]; then
|
||||||
git init
|
git init
|
||||||
git add .
|
git add .
|
||||||
git commit -a -m "Initial UI-Cookiecutter Commit."
|
git commit -a -m "Initial UI-Cookiecutter Commit."
|
||||||
|
fi
|
2
tox.ini
2
tox.ini
@ -16,6 +16,8 @@ deps =
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:checkbuild]
|
[testenv:checkbuild]
|
||||||
|
setenv =
|
||||||
|
IGNORE_GIT=1
|
||||||
commands =
|
commands =
|
||||||
rm -rf {envdir}/cafe-ui
|
rm -rf {envdir}/cafe-ui
|
||||||
cookiecutter --no-input --output-dir {envdir} {toxinidir}
|
cookiecutter --no-input --output-dir {envdir} {toxinidir}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user