mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-17 13:18:56 -04:00
Add travis integration to test the examples
This commit is contained in:
@@ -36,9 +36,8 @@ Requirements:
|
||||
the example
|
||||
|
||||
"""
|
||||
import os
|
||||
import sys
|
||||
from PySide import QtGui
|
||||
from PySide 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__)) + '/..'))
|
||||
@@ -62,6 +61,10 @@ def main():
|
||||
# setup stylesheet
|
||||
app.setStyleSheet(qdarkstyle.load_stylesheet(pyside=True))
|
||||
|
||||
# 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_()
|
||||
|
||||
Reference in New Issue
Block a user