{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest-qt/issues/35","labels_url":"https://api.github.com/repos/pytest-dev/pytest-qt/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-qt/issues/35/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest-qt/issues/35/events","html_url":"https://github.com/pytest-dev/pytest-qt/issues/35","id":66227627,"number":35,"title":"Update travis build to test PyQt5","user":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nicoddemus","id":1085180,"avatar_url":"https://avatars.githubusercontent.com/u/1085180?v=3","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-04-03T21:05:26Z","updated_at":"2015-04-08T22:39:15Z","closed_at":null,"body":"As suggested by @jdreaver, an alternative is trying to use conda for that:\r\n\r\n* http://conda.pydata.org/docs/travis.html\r\n* https://binstar.org/jdreaver/pyqt5"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest-qt/issues/comments/91056787","html_url":"https://github.com/pytest-dev/pytest-qt/issues/35#issuecomment-91056787","issue_url":"https://api.github.com/repos/pytest-dev/pytest-qt/issues/35","id":91056787,"user":{"login":"jdreaver","id":1253071,"avatar_url":"https://avatars.githubusercontent.com/u/1253071?v=3","gravatar_id":"","url":"https://api.github.com/users/jdreaver","html_url":"https://github.com/jdreaver","followers_url":"https://api.github.com/users/jdreaver/followers","following_url":"https://api.github.com/users/jdreaver/following{/other_user}","gists_url":"https://api.github.com/users/jdreaver/gists{/gist_id}","starred_url":"https://api.github.com/users/jdreaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdreaver/subscriptions","organizations_url":"https://api.github.com/users/jdreaver/orgs","repos_url":"https://api.github.com/users/jdreaver/repos","events_url":"https://api.github.com/users/jdreaver/events{/privacy}","received_events_url":"https://api.github.com/users/jdreaver/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T22:39:15Z","updated_at":"2015-04-08T22:39:15Z","body":"I think I have it! Try this: \r\n\r\n```\r\nxvfb-run -s \"-screen 0 640x480x24\" coverage run --source=pytestqt setup.py test\r\n```\r\n\r\nBasically, you pass the screen size and set **24 bits per pixel** (the `x24` part at the end). The default for xvfb is 8 bits per pixel. Now, I don't know if Ubuntu 12.04 has `xvfb-run`, so we have to pass in the arguments differently. There is a [section in the Travis docs](http://docs.travis-ci.com/user/gui-and-headless-browsers/#Configuring-xvfb-screen-size-and-more) on this. This is my best guess:\r\n```\r\nbefore_install:\r\n  - \"/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x24\"\r\n```\r\n\r\nI just took there example and set it to 24 bits per pixel. Note that you remove the `export DISPLAY=:99.0` line, since that is set in the above command. You can probably leave the `sleep 3` line."}}