Travis: find the Qt plugins when running tests

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-11-05 17:48:53 -08:00
parent 2f81a6927b
commit f32b431a6d

View file

@ -44,10 +44,15 @@ before_install:
- "sh -e /etc/init.d/xvfb start"
script:
- export PATH=$PWD/Qt/5.9.1/bin:$PATH # Make sure correct qmake is found on the $PATH for linuxdeployqt
- export CMAKE_PREFIX_PATH=$PWD/Qt/5.9.1/lib/cmake ;
- export QT_ROOT=$PWD/Qt
- export PATH=$QT_ROOT/5.9.1/bin:$PATH # Make sure correct qmake is found on the $PATH for linuxdeployqt
- export CMAKE_PREFIX_PATH=$QT_ROOT/5.9.1/lib/cmake ;
cd .. ;
bash -e ./subsurface/scripts/build.sh -desktop -create-appdir -build-with-webkit
- export QT_PLUGIN_PATH=$QT_ROOT/5.9.1/plugins
- export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/5.9.1/plugins
- export QT_DEBUG_PLUGINS=1
- find $QT_ROOT/5.9.1/plugins
- env CTEST_OUTPUT_ON_FAILURE=1 make -C subsurface/build check
- # env CTEST_OUTPUT_ON_FAILURE=1 make -C subsurface/build-mobile check
- mkdir -p appdir/usr/plugins/ ; mv appdir/usr/home/travis/build/*/subsurface/Qt/5.9.1/plugins/* appdir/usr/plugins/