4
4
- ARTIFACTS_S3_BUCKET=matplotlib-test-results
5
5
- secure : RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
6
6
- secure : E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
7
+ - BUILD_DOCS=false
7
8
- TEST_ARGS=--no-pep8
8
9
9
10
language : python
@@ -16,23 +17,30 @@ matrix:
16
17
- python : 3.4
17
18
- python : 2.7
18
19
env : TEST_ARGS=--pep8
20
+ - python : 2.7
21
+ env : BUILD_DOCS=true
19
22
20
23
install :
21
24
- pip install -q --use-mirrors nose python-dateutil numpy pep8 pyparsing pillow
22
25
- sudo apt-get update && sudo apt-get -qq install inkscape libav-tools
26
+ - if [[ $BUILD_DOCS == true ]]; then pip install sphinx numpydoc linkchecker; fi
23
27
- python setup.py install
24
28
25
29
script :
26
- - mkdir ../tmp_test_dir
27
- - cd ../tmp_test_dir
28
30
# The number of processes is hardcoded, because using too many causes the
29
31
# Travis VM to run out of memory (since so many copies of inkscape and
30
32
# ghostscript are running at the same time).
31
33
- echo Testing using 8 processes
32
34
# Generate the font caches in a single process before starting the
33
35
# multiple processes
34
36
- 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
36
44
37
45
after_failure :
38
46
- tar cjf result_images.tar.bz2 result_images
0 commit comments