forked from mottosso/Qt.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 873 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: python
python:
- 2.7_with_system_site_packages
- 3.4
env:
QT_VERBOSE=true
addons:
apt:
packages:
- qt4-qmake
- libqt4-dev
- python-qt4
# - python-pyside # not whitelisted for some reason
install:
# Based on http://stackoverflow.com/a/24545890/478949
- pip install PySide --no-index --find-links https://parkin.github.io/python-wheelhouse/;
- python -c "import PySide;print(PySide)"
- python -c "import PyQt4;print(PyQt4)"
- python ~/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin/pyside_postinstall.py -install
# Enable virtual framebuffer, this way we can instantiate
# a QApplication and create widgets.
# https://docs.travis-ci.com/user/gui-and-headless-browsers/
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- nosetests --verbose