浏览代码

Travis CI: Build documentation in isolated environment

This prevents loading the `sphinx_multiversion` module from old branches
instead of the latest one (due to Python's behaviour of preferring
modules from the CWD).
Jan Holthuis 4 年之前
父节点
当前提交
d52596db60
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      .travis.yml

+ 1 - 1
.travis.yml

@@ -91,6 +91,6 @@ before_script:
 script:
 - mkdir html
 - git fetch --all
-- sphinx-multiversion -W docs html
+- python -I -m sphinx_multiversion -W docs html
 - python setup.py build sdist bdist_wheel