Add travis integration to test the examples

This commit is contained in:
ColinDuquesnoy
2014-01-02 16:12:25 +01:00
parent 21b91c9f9b
commit 2d9f341ab6
3 changed files with 29 additions and 3 deletions
+5 -1
View File
@@ -37,7 +37,7 @@ Requirements:
"""
import sys
from PyQt4 import QtGui
from PyQt4 import QtGui, QtCore
from os.path import abspath, dirname
# make the example runnable without the need to install
sys.path.insert(0, abspath(dirname(abspath(__file__)) + '/..'))
@@ -61,6 +61,10 @@ def main():
# setup stylesheet
app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=False))
# auto quit after 2s when testing on travis-ci
if "--travis" in sys.argv:
QtCore.QTimer.singleShot(2000, app.exit)
# run
window.show()
app.exec_()