From 380d296d097704ffd096a3329dbc91258e4a0c09 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 19 Feb 2017 12:32:46 +0100 Subject: [PATCH] Try to run Qt application using Xpra --- .travis.yml | 10 +++++++++- tests/tests.sh | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index eedbf7c..d84a504 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,10 @@ dist: trusty os: linux +env: + global: + - DISPLAY=:99 + before_install: - sudo add-apt-repository --yes ppa:beineri/opt-qt58-trusty - sudo apt-get update -qq @@ -18,7 +22,7 @@ before_install: - sudo chmod a+x /usr/local/bin/appimagetool install: - - sudo apt-get -y install qt58base binutils + - sudo apt-get -y install qt58base binutils xpra script: - source /opt/qt*/bin/qt*-env.sh @@ -35,10 +39,14 @@ script: - ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/usr/bin/linuxdeployqt -verbose=3 -appimage - ls -lh - find *.AppDir + - xpra start :99 - bash -e tests/tests.sh - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - bash ./upload.sh ./linuxdeployqt-*.AppImage +after_script: + - "xpra stop :99" + branches: except: - # Do not build tags that we create when we upload to GitHub Releases diff --git a/tests/tests.sh b/tests/tests.sh index ac90328..060f4c5 100644 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -15,10 +15,18 @@ mkdir -p nonfhs fhs/usr/bin cp QtWidgetsApplication nonfhs/ ../../../linuxdeployqt-*-x86_64.AppImage nonfhs/QtWidgetsApplication +ldd nonfhs/QtWidgetsApplication find nonfhs/ +nonfhs/QtWidgetsApplication & +sleep 10 +killall QtWidgetsApplication cp QtWidgetsApplication fhs/usr/bin/ ../../../linuxdeployqt-*-x86_64.AppImage fhs/usr/bin/QtWidgetsApplication +ldd fhs/usr/bin/QtWidgetsApplication find fhs/ +fhs/usr/bin/QtWidgetsApplication & +sleep 10 +killall QtWidgetsApplication cd ../../../