language: python
python:
  - "2.7"
  - "3.4"
virtualenv:
  system_site_packages: true
before_install:
 - sudo apt-get update
 - sudo apt-get install -qq python-pyside --fix-missing
 - sudo apt-get install -qq python-qt4 --fix-missing
 - sudo apt-get install -qq python3-pyside --fix-missing
 - sudo apt-get install -qq python3-pyqt4 --fix-missing
 - "export DISPLAY=:99.0"
 - "sh -e /etc/init.d/xvfb start"
before_script:
  - cd example
script:
  - python example.py --qt_from=pyqt --test
  - python example.py --qt_from=pyside --test

  - python example.py --qt_from=pyqt --no_dark --test
  - python example.py --qt_from=pyside --no_dark --test