1+ sudo : false
2+
3+ addons :
4+ apt :
5+ packages :
6+ - inkscape
7+ - libav-tools
8+ - gdb
9+ - mencoder
10+ - dvipng
11+ - texlive-latex-base
12+ - texlive-latex-extra
13+ - texlive-fonts-recommended
14+ - texlive-latex-recommended
15+ - graphviz
16+ # - fonts-humor-sans
17+ # sources:
18+ # - debian-sid
19+
120env :
221 global :
322 - ARTIFACTS_AWS_REGION=us-east-1
827 - BUILD_DOCS=false
928 - TEST_ARGS=--no-pep8
1029 - NUMPY=numpy
30+ - NPROC=2
1131
1232language : python
1333
@@ -25,8 +45,6 @@ matrix:
2545
2646install :
2747 - pip install -q --use-mirrors nose python-dateutil $NUMPY pep8 pyparsing pillow sphinx!=1.3.0
28- - sudo apt-get update && sudo apt-get -qq install inkscape libav-tools gdb mencoder
29- # We use --no-install-recommends to avoid pulling in additional large latex docs that we don't need
3048
3149 # We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
3250 # availible in the Ubuntu version used by Travis but we can manually install the deb from a later
@@ -36,12 +54,13 @@ install:
3654 # Neihter is installed as a dependency of IPython since they are not used by the IPython console.
3755 - |
3856 if [[ $BUILD_DOCS == true ]]; then
39- sudo apt-get install -qq --no-install-recommends dvipng texlive-latex-base texlive-latex-extra texlive-fonts-recommended graphviz
4057 pip install numpydoc linkchecker ipython jsonschema mistune
58+ wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true
4159 wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-humor-sans/fonts-humor-sans_1.0-1_all.deb
42- sudo dpkg -i fonts-humor-sans_1.0-1_all.deb
43- wget https://googlefontdirectory.googlecode.com/hg/ofl/felipa/Felipa-Regular.ttf
44- sudo cp Felipa-Regular.ttf /usr/local/share/fonts/
60+ mkdir -p tmp
61+ dpkg -x fonts-humor-sans_1.0-1_all.deb tmp
62+ cp tmp/usr/share/fonts/truetype/humor-sans/Humor-Sans.ttf ~/.local/share/fonts/
63+ cp Felipa-Regular.ttf ~/.local/share/fonts/
4564 fc-cache -f -v
4665 fi;
4766 - python setup.py install
@@ -50,17 +69,16 @@ script:
5069 # The number of processes is hardcoded, because using too many causes the
5170 # Travis VM to run out of memory (since so many copies of inkscape and
5271 # ghostscript are running at the same time).
53- - echo Testing using 8 processes
72+ - echo Testing using $NPROC processes
5473 # Generate the font caches in a single process before starting the
5574 # multiple processes
56- - gcc --version
5775 - python -c "from matplotlib import font_manager"
5876 - |
5977 if [[ $BUILD_DOCS == false ]]; then
6078 export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples
6179 mkdir ../tmp_test_dir
6280 cd ../tmp_test_dir
63- gdb -return-child-result -batch -ex r -ex bt --args python ../matplotlib/tests.py -sv --processes=8 --process-timeout=300 $TEST_ARGS
81+ gdb -return-child-result -batch -ex r -ex bt --args python ../matplotlib/tests.py -sv --processes=$NPROC --process-timeout=300 $TEST_ARGS
6482 else
6583 cd doc
6684 python make.py html --small --warningsaserrors
0 commit comments