Skip to content

Commit d192293

Browse files
committed
Merge branch 'v1.4.x'
* v1.4.x: Add documentation to Travis builds.
2 parents f0d098c + 67d141e commit d192293

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
- ARTIFACTS_S3_BUCKET=matplotlib-test-results
55
- secure: RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
66
- secure: E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
7+
- BUILD_DOCS=false
78
- TEST_ARGS=--no-pep8
89

910
language: python
@@ -16,23 +17,30 @@ matrix:
1617
- python: 3.4
1718
- python: 2.7
1819
env: TEST_ARGS=--pep8
20+
- python: 2.7
21+
env: BUILD_DOCS=true
1922

2023
install:
2124
- pip install -q --use-mirrors nose python-dateutil numpy pep8 pyparsing pillow
2225
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools
26+
- if [[ $BUILD_DOCS == true ]]; then pip install sphinx numpydoc linkchecker; fi
2327
- python setup.py install
2428

2529
script:
26-
- mkdir ../tmp_test_dir
27-
- cd ../tmp_test_dir
2830
# The number of processes is hardcoded, because using too many causes the
2931
# Travis VM to run out of memory (since so many copies of inkscape and
3032
# ghostscript are running at the same time).
3133
- echo Testing using 8 processes
3234
# Generate the font caches in a single process before starting the
3335
# multiple processes
3436
- python -c "from matplotlib import font_manager"
35-
- python ../matplotlib/tests.py -sv --processes=8 --process-timeout=300 $TEST_ARGS
37+
- if [[ $BUILD_DOCS == false ]]; then mkdir ../tmp_test_dir; fi
38+
- if [[ $BUILD_DOCS == false ]]; then cd ../tmp_test_dir; fi
39+
- if [[ $BUILD_DOCS == false ]]; then python ../matplotlib/tests.py -sv --processes=8 --process-timeout=300 $TEST_ARGS; fi
40+
- if [[ $BUILD_DOCS == true ]]; then cd doc; python make.py html --small; fi
41+
# We don't build the LaTeX docs here, so linkchecker will complain
42+
- if [[ $BUILD_DOCS == true ]]; then touch build/html/Matplotlib.pdf; fi
43+
- if [[ $BUILD_DOCS == true ]]; then linkchecker build/html/index.html; fi
3644

3745
after_failure:
3846
- tar cjf result_images.tar.bz2 result_images

0 commit comments

Comments
 (0)