Force npm install on RTD and set appropriate PATH value

This commit is contained in:
Alexandre Lissy 2020-11-03 13:32:06 +01:00
parent d9a35d63b0
commit 1cd5e44a52
1 changed files with 4 additions and 0 deletions

View File

@ -30,7 +30,11 @@ autodoc_mock_imports = ['deepspeech']
# on our CI as in RTD to avoid regressions on RTD that we would not catch on
# TaskCluster
import subprocess
parent = subprocess.check_output("cd ../ && pwd", shell=True).decode().strip()
os.environ["PATH"] = os.path.join(parent, 'node_modules', '.bin') + ':' + os.environ["PATH"]
subprocess.check_call('cd ../ && npm install typedoc@0.17.4 typescript@3.8.3 @types/node@13.9.x', shell=True)
subprocess.check_call('env', shell=True)
subprocess.check_call('which typedoc', shell=True)
subprocess.check_call('cd ../ && doxygen doc/doxygen-c.conf', shell=True)
subprocess.check_call('cd ../ && doxygen doc/doxygen-java.conf', shell=True)
subprocess.check_call('cd ../ && doxygen doc/doxygen-dotnet.conf', shell=True)