Try to run Qt application using Xpra
This commit is contained in:
+9
-1
@@ -4,6 +4,10 @@ dist: trusty
|
|||||||
|
|
||||||
os: linux
|
os: linux
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- DISPLAY=:99
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo add-apt-repository --yes ppa:beineri/opt-qt58-trusty
|
- sudo add-apt-repository --yes ppa:beineri/opt-qt58-trusty
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
@@ -18,7 +22,7 @@ before_install:
|
|||||||
- sudo chmod a+x /usr/local/bin/appimagetool
|
- sudo chmod a+x /usr/local/bin/appimagetool
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get -y install qt58base binutils
|
- sudo apt-get -y install qt58base binutils xpra
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- source /opt/qt*/bin/qt*-env.sh
|
- source /opt/qt*/bin/qt*-env.sh
|
||||||
@@ -35,10 +39,14 @@ script:
|
|||||||
- ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/usr/bin/linuxdeployqt -verbose=3 -appimage
|
- ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/usr/bin/linuxdeployqt -verbose=3 -appimage
|
||||||
- ls -lh
|
- ls -lh
|
||||||
- find *.AppDir
|
- find *.AppDir
|
||||||
|
- xpra start :99
|
||||||
- bash -e tests/tests.sh
|
- bash -e tests/tests.sh
|
||||||
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||||
- bash ./upload.sh ./linuxdeployqt-*.AppImage
|
- bash ./upload.sh ./linuxdeployqt-*.AppImage
|
||||||
|
|
||||||
|
after_script:
|
||||||
|
- "xpra stop :99"
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
- # Do not build tags that we create when we upload to GitHub Releases
|
- # Do not build tags that we create when we upload to GitHub Releases
|
||||||
|
|||||||
@@ -15,10 +15,18 @@ mkdir -p nonfhs fhs/usr/bin
|
|||||||
|
|
||||||
cp QtWidgetsApplication nonfhs/
|
cp QtWidgetsApplication nonfhs/
|
||||||
../../../linuxdeployqt-*-x86_64.AppImage nonfhs/QtWidgetsApplication
|
../../../linuxdeployqt-*-x86_64.AppImage nonfhs/QtWidgetsApplication
|
||||||
|
ldd nonfhs/QtWidgetsApplication
|
||||||
find nonfhs/
|
find nonfhs/
|
||||||
|
nonfhs/QtWidgetsApplication &
|
||||||
|
sleep 10
|
||||||
|
killall QtWidgetsApplication
|
||||||
|
|
||||||
cp QtWidgetsApplication fhs/usr/bin/
|
cp QtWidgetsApplication fhs/usr/bin/
|
||||||
../../../linuxdeployqt-*-x86_64.AppImage fhs/usr/bin/QtWidgetsApplication
|
../../../linuxdeployqt-*-x86_64.AppImage fhs/usr/bin/QtWidgetsApplication
|
||||||
|
ldd fhs/usr/bin/QtWidgetsApplication
|
||||||
find fhs/
|
find fhs/
|
||||||
|
fhs/usr/bin/QtWidgetsApplication &
|
||||||
|
sleep 10
|
||||||
|
killall QtWidgetsApplication
|
||||||
|
|
||||||
cd ../../../
|
cd ../../../
|
||||||
|
|||||||
Reference in New Issue
Block a user