forked from pytest-dev/pytest-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (33 loc) · 839 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
35
36
37
38
39
40
41
42
43
44
45
language: python
python:
- "2.7"
- "3.2"
virtualenv:
system_site_packages: true
matrix:
allow_failures:
# unfortunately couldn't find a reliable way to test pyqt5 on travis yet
- env: PYTEST_VERSION=2.7.1 PYTEST_QT_API=pyqt5
env:
- PYTEST_VERSION=2.7.1 PYTEST_QT_API=pyqt4
- PYTEST_VERSION=2.7.1 PYTEST_QT_API=pyside
- PYTEST_VERSION=2.7.1 PYTEST_QT_API=pyqt5
install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update
# Qt
- python install-qt.py
# PyTest
- pip uninstall -y pytest
- pip install pytest==$PYTEST_VERSION
# others
- pip install coveralls --use-wheel
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
script:
- python setup.py develop
- catchsegv coverage run --source=pytestqt setup.py test
after_success:
- coveralls