@@ -27,9 +27,6 @@ addons:
27
27
- graphviz
28
28
- libgeos-dev
29
29
- otf-freefont
30
- # - fonts-humor-sans
31
- # sources:
32
- # - debian-sid
33
30
34
31
env :
35
32
global :
@@ -95,7 +92,7 @@ before_install:
95
92
else
96
93
brew update
97
94
brew tap homebrew/gui
98
- brew install python libpng ffmpeg imagemagick mplayer ccache
95
+ brew install python libpng ffmpeg imagemagick mplayer ccache
99
96
# We could install ghostscript and inkscape here to test svg and pdf
100
97
# but this makes the test time really long.
101
98
# brew install ghostscript inkscape
@@ -110,23 +107,50 @@ install:
110
107
ccache -s
111
108
git describe
112
109
# Upgrade pip and setuptools and wheel to get as clean an install as possible
113
- pip install --upgrade pip
114
- pip install --upgrade wheel
115
- pip install --upgrade setuptools
110
+ pip install --upgrade pip setuptools wheel
116
111
- |
117
112
# Install dependencies from pypi
118
- pip install $PRE python-dateutil $NUMPY pyparsing!=2.1.6 $PANDAS cycler codecov coverage $MOCK $NOSE sphinx pillow
113
+ pip install $PRE \
114
+ $MOCK \
115
+ $NOSE \
116
+ $NUMPY \
117
+ $PANDAS \
118
+ codecov \
119
+ coverage \
120
+ cycler \
121
+ pillow \
122
+ pyparsing!=2.1.6 \
123
+ python-dateutil \
124
+ sphinx
125
+ # GUI toolkits are pip-installable only for some versions of Python so don't
126
+ # fail if we can't install them.
127
+ pip install pyqt5 || true
128
+ # See https://wxpython.org/Phoenix/snapshot-builds/README.txt
129
+ pip install --pre \
130
+ -f https://wxpython.org/Phoenix/release-extras/linux/gtk3/centos-7/ \
131
+ wxpython \
132
+ || true
133
+ python -c 'import PyQt5.QtCore' || true
134
+ python -c 'import wx' || true
119
135
if [[ $BUILD_DOCS == true ]]; then
120
136
pip install $PRE -r doc-requirements.txt
121
137
fi
122
138
123
139
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
124
- pip install $PRE pytest 'pytest-cov>=2.3.1' pytest-faulthandler pytest-rerunfailures pytest-timeout pytest-xdist $INSTALL_PEP8
140
+ pip install $PRE \
141
+ pytest \
142
+ pytest-cov>=2.3.1 \
143
+ pytest-faulthandler \
144
+ pytest-rerunfailures \
145
+ pytest-timeout \
146
+ pytest-xdist \
147
+ $INSTALL_PEP8
125
148
126
- # We manually install humor sans using the package from Ubuntu 14.10. Unfortunatly humor sans is not
127
- # availible in the Ubuntu version used by Travis but we can manually install the deb from a later
128
- # version since is it basically just a .ttf file
129
- # The current Travis Ubuntu image is to old to search .local/share/fonts so we store fonts in .fonts
149
+ # We manually install humor sans using the package from Ubuntu 14.10.
150
+ # Unfortunatly humor sans is not availible in the Ubuntu version used by
151
+ # Travis but we can manually install the deb from a later version since is
152
+ # it basically just a .ttf file. The current Travis Ubuntu image is to old
153
+ # to search .local/share/fonts so we store fonts in .fonts
130
154
if [[ $BUILD_DOCS == true ]]; then
131
155
wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O Felipa-Regular.ttf
132
156
wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-humor-sans/fonts-humor-sans_1.0-1_all.deb
@@ -144,6 +168,13 @@ install:
144
168
# Install matplotlib
145
169
pip install -ve .
146
170
171
+ before_script :
172
+ - |
173
+ if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
174
+ export DISPLAY=:99.0
175
+ sh -e /etc/init.d/xvfb start
176
+ fi
177
+
147
178
script : ci/travis/test_script.sh
148
179
149
180
before_cache :
0 commit comments