Browse Source

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 years ago
parent
commit
d52596db60
1 changed files with 1 additions and 1 deletions
  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