Browse Source

Clean releasenotes and install-guide build dir

to ensure artefacts from previous runs are not
left over when running these document builds locally.

TrivialFix

Change-Id: I0062c1bf94490ed4e5d0eb3675226b144f7124c1
Tom Barron 1 year ago
parent
commit
85405dab29
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      tox.ini

+ 8
- 2
tox.ini View File

@@ -15,12 +15,18 @@ commands =
15 15
   ostestr {posargs}
16 16
 
17 17
 [testenv:releasenotes]
18
-commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \
18
+whitelist_externals = rm
19
+commands =
20
+  rm -rf releasenotes/build
21
+  sphinx-build -a -E -W -d releasenotes/build/doctrees \
19 22
          -b html releasenotes/source releasenotes/build/html
20 23
 
21 24
 [testenv:install-guide]
22 25
 # builds to install-guide/build/html
23
-commands = sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
26
+whitelist_externals = rm
27
+commands =
28
+  rm -rf install-guide/build
29
+  sphinx-build -a -E -W -d install-guide/build/doctrees -b html install-guide/source install-guide/build/html
24 30
 
25 31
 [testenv:debug]
26 32
 commands = oslo_debug_helper {posargs}

Loading…
Cancel
Save