language: python

python:
  - 2.7

env:
  QT_VERBOSE=true

virtualenv:
  # apt packages ends up amongst system packages
  system_site_packages: 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 ~/virtualenv/python${TRAVIS_PYTHON_VERSION}_with_system_site_packages/bin/pyside_postinstall.py -install
  - python -c "import PySide;print(PySide)"
  - python -c "import PyQt4;print(PyQt4)"

# 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

language: python

python:
  - 2.7
  - 3.4

env:
  QT_VERBOSE=true

virtualenv:
  # apt packages ends up amongst system packages
  system_site_packages: 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 ~/virtualenv/python${TRAVIS_PYTHON_VERSION}_with_system_site_packages/bin/pyside_postinstall.py -install
  - python -c "import PySide;print(PySide)"
  - python -c "import PyQt4;print(PyQt4)"

# 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

Add tests for Python 3
Add tests for Python 3
