@@ -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,44 @@ 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+ python -c 'import PyQt5.QtCore' || true
119129 if [[ $BUILD_DOCS == true ]]; then
120130 pip install $PRE -r doc-requirements.txt
121131 fi
122132
123133 # 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
134+ pip install $PRE \
135+ pytest \
136+ pytest-cov>=2.3.1 \
137+ pytest-faulthandler \
138+ pytest-rerunfailures \
139+ pytest-timeout \
140+ pytest-xdist \
141+ $INSTALL_PEP8
125142
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
143+ # We manually install humor sans using the package from Ubuntu 14.10.
144+ # Unfortunatly humor sans is not availible in the Ubuntu version used by
145+ # Travis but we can manually install the deb from a later version since is
146+ # it basically just a .ttf file. The current Travis Ubuntu image is to old
147+ # to search .local/share/fonts so we store fonts in .fonts
130148 if [[ $BUILD_DOCS == true ]]; then
131149 wget https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O Felipa-Regular.ttf
132150 wget http://mirrors.kernel.org/ubuntu/pool/universe/f/fonts-humor-sans/fonts-humor-sans_1.0-1_all.deb
@@ -144,6 +162,13 @@ install:
144162 # Install matplotlib
145163 pip install -ve .
146164
165+ before_script :
166+ - |
167+ if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
168+ export DISPLAY=:99.0
169+ sh -e /etc/init.d/xvfb start
170+ fi
171+
147172script : ci/travis/test_script.sh
148173
149174before_cache :
0 commit comments