Eliminate warnings about rm in api-ref build

This currently gives a warning about the 'rm' command not being
installed in the venv. Whitelist bash and run rm under bash (like we do
with other external commands) to squash this warning.

Closes-Bug: #1581778
Change-Id: Id26926ad7a75b94f0f57ea3c2083312c66663b34
This commit is contained in:
Jim Rollenhagen 2016-05-16 12:18:26 +00:00
parent 2f0e1e180e
commit 6fbf5c5516
1 changed files with 2 additions and 1 deletions

View File

@ -76,9 +76,10 @@ commands =
# we do not used -W here because we are doing some slightly tricky
# things to build a single page document, and as such, we are ok
# ignoring the duplicate stanzas warning.
whitelist_externals = bash
install_command = pip install -U --force-reinstall {opts} {packages}
commands =
rm -rf api-ref/build
bash -c 'rm -rf api-ref/build'
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
[testenv:releasenotes]