Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e035cf9

Browse files
committed
Merge pull request #5797 from jenshnielsen/build-docs-on-35-linkcheck
Build docs on python3.5 with linkcheck running on python 2.7
2 parents fe701e3 + 5edf56f commit e035cf9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ matrix:
4747
env: PANDAS=pandas NOSE_ARGS=--with-coverage
4848
- python: 3.5
4949
env: TEST_ARGS=--pep8
50-
- python: 2.7
51-
env: BUILD_DOCS=true MOCK=mock
50+
- python: 3.5
51+
env: BUILD_DOCS=true
5252
- python: "nightly"
5353
env: PRE=--pre
5454
allow_failures:
@@ -86,8 +86,7 @@ install:
8686

8787
- |
8888
if [[ $BUILD_DOCS == true ]]; then
89-
pip install $PRE numpydoc ipython jsonschema mistune colorspacious
90-
pip install -q $PRE linkchecker
89+
pip install $PRE numpydoc ipython colorspacious
9190
wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O Felipa-Regular.ttf
9291
wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-humor-sans/fonts-humor-sans_1.0-1_all.deb
9392
mkdir -p tmp
@@ -118,6 +117,9 @@ script:
118117
python make.py html --small --warningsaserrors
119118
# We don't build the LaTeX docs here, so linkchecker will complain
120119
touch build/html/Matplotlib.pdf
120+
deactivate
121+
source ~/virtualenv/python2.7/bin/activate
122+
pip install linkchecker
121123
linkchecker build/html/index.html
122124
fi
123125

0 commit comments

Comments
 (0)