Skip to content

Commit 4ef3799

Browse files
authored
Merge pull request #8580 from dstansby/travis-docreqs
CI: Only install doc requirements if building docs on travis
2 parents 9a80cf6 + f0fb223 commit 4ef3799

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,10 @@ install:
115115
pip install --upgrade setuptools
116116
- |
117117
# Install dependencies from pypi
118-
pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler codecov coverage $MOCK $NOSE
119-
pip install $PRE -r doc-requirements.txt
118+
pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler codecov coverage $MOCK $NOSE sphinx pillow
119+
if [[ $BUILD_DOCS == true ]]; then
120+
pip install $PRE -r doc-requirements.txt
121+
fi
120122
121123
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
122124
pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-faulthandler pytest-rerunfailures pytest-timeout pytest-warnings pytest-xdist $INSTALL_PEP8

0 commit comments

Comments
 (0)