Skip to content
Snippets Groups Projects
Commit 0949c99d authored by inso's avatar inso
Browse files

Set qt-menu.nib and fix tests

parent 2812a721
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,13 @@ eval "$(pyenv virtualenv-init -)"
cd $HOME/build/ucoin-io/sakia
pyenv activate sakia-env
export XVFBARGS="-screen 0 1280x1024x24"
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3
if [ $TRAVIS_OS_NAME == "linux" ]
then
export XVFBARGS="-screen 0 1280x1024x24"
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3
fi
coverage run --source=sakia.core,sakia.gui,sakia.models run_tests.py
......@@ -78,6 +78,7 @@ print("Zip files : ")
print(zipincludes)
print("Packages : ")
print(packages)
print("Sys.path : ")
print(sys.path)
options = {"path": sys.path,
......@@ -88,6 +89,18 @@ options = {"path": sys.path,
"zip_includes": zipincludes
}
if sys.platform == "darwin":
libpath = str(QtCore.QLibraryInfo.location(
QtCore.QLibraryInfo.LibrariesPath))
for subpath in ['QtGui.framework/Resources/qt_menu.nib',
'Resources/qt_menu.nib']:
path = os.path.join(libpath, subpath)
if os.path.exists(path):
print("Qt menu nib : ")
print(path)
options["qt-menu-nib"] = path
break
#############################################################################
# preparation des cibles
base = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment