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
 - coverage run --source=pytestqt setup.py test

after_success:
 - coveralls

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

Revert "Remove catchsegv as it prevents coverage from collecting information"
Revert "Remove catchsegv as it prevents coverage from collecting information"

This reverts commit d54b40719b0d7a69ea6437fcf27ae305ddcaea35.
