Skip to content

Commit d52596d

Browse files
committed
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).
1 parent 0d69ce5 commit d52596d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ before_script:
9191
script:
9292
- mkdir html
9393
- git fetch --all
94-
- sphinx-multiversion -W docs html
94+
- python -I -m sphinx_multiversion -W docs html
9595
- python setup.py build sdist bdist_wheel
9696

0 commit comments

Comments
 (0)