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
+
1
20
env :
2
21
global :
3
22
- ARTIFACTS_AWS_REGION=us-east-1
8
27
- BUILD_DOCS=false
9
28
- TEST_ARGS=--no-pep8
10
29
- NUMPY=numpy
30
+ - NPROC=2
11
31
12
32
language : python
13
33
@@ -25,8 +45,6 @@ matrix:
25
45
26
46
install :
27
47
- 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
30
48
31
49
# We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
32
50
# availible in the Ubuntu version used by Travis but we can manually install the deb from a later
@@ -36,12 +54,13 @@ install:
36
54
# Neihter is installed as a dependency of IPython since they are not used by the IPython console.
37
55
- |
38
56
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
40
57
pip install numpydoc linkchecker ipython jsonschema mistune
58
+ wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true
41
59
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/
45
64
fc-cache -f -v
46
65
fi;
47
66
- python setup.py install
@@ -50,17 +69,16 @@ script:
50
69
# The number of processes is hardcoded, because using too many causes the
51
70
# Travis VM to run out of memory (since so many copies of inkscape and
52
71
# ghostscript are running at the same time).
53
- - echo Testing using 8 processes
72
+ - echo Testing using $NPROC processes
54
73
# Generate the font caches in a single process before starting the
55
74
# multiple processes
56
- - gcc --version
57
75
- python -c "from matplotlib import font_manager"
58
76
- |
59
77
if [[ $BUILD_DOCS == false ]]; then
60
78
export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples
61
79
mkdir ../tmp_test_dir
62
80
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
64
82
else
65
83
cd doc
66
84
python make.py html --small --warningsaserrors
0 commit comments