Browse Source

Try to run Qt application using Xpra

master
probonopd 8 years ago
parent
commit
380d296d09
  1. 10
      .travis.yml
  2. 8
      tests/tests.sh

10
.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

8
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 ../../../

Loading…
Cancel
Save