@@ -27,9 +27,6 @@ addons:
2727 - graphviz
2828 - libgeos-dev
2929 - otf-freefont
30- # - fonts-humor-sans
31- # sources:
32- # - debian-sid
3330
3431env :
3532 global :
@@ -95,7 +92,7 @@ before_install:
9592 else
9693 brew update
9794 brew tap homebrew/gui
98- brew install python libpng ffmpeg imagemagick mplayer ccache
95+ brew install python libpng ffmpeg imagemagick mplayer ccache
9996 # We could install ghostscript and inkscape here to test svg and pdf
10097 # but this makes the test time really long.
10198 # brew install ghostscript inkscape
@@ -110,23 +107,48 @@ install:
110107 ccache -s
111108 git describe
112109 # 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
116111 - |
117112 # 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
119133 if [[ $BUILD_DOCS == true ]]; then
120134 pip install $PRE -r doc-requirements.txt
121135 fi
122136
123137 # 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
138+ pip install $PRE \
139+ pytest \
140+ pytest-cov>=2.3.1 \
141+ pytest-faulthandler \
142+ pytest-rerunfailures \
143+ pytest-timeout \
144+ pytest-xdist \
145+ $INSTALL_PEP8
125146
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
147+ # We manually install humor sans using the package from Ubuntu 14.10.
148+ # Unfortunatly humor sans is not availible in the Ubuntu version used by
149+ # Travis but we can manually install the deb from a later version since is
150+ # it basically just a .ttf file. The current Travis Ubuntu image is to old
151+ # to search .local/share/fonts so we store fonts in .fonts
130152 if [[ $BUILD_DOCS == true ]]; then
131153 wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O Felipa-Regular.ttf
132154 wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-humor-sans/fonts-humor-sans_1.0-1_all.deb
@@ -144,6 +166,13 @@ install:
144166 # Install matplotlib
145167 pip install -ve .
146168
169+ before_script :
170+ - |
171+ if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
172+ export DISPLAY=:99.0
173+ sh -e /etc/init.d/xvfb start
174+ fi
175+
147176script : ci/travis/test_script.sh
148177
149178before_cache :
0 commit comments