1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

Setup build with Qt 5.7

This commit is contained in:
David Rosca 2016-04-24 10:25:01 +02:00
parent eb3d46f4f5
commit ca6791171d

View File

@ -5,6 +5,7 @@ cache: apt
env: env:
- QT=qt56 - QT=qt56
- QT=qt57
before_install: before_install:
- export DISPLAY=:99.0 - export DISPLAY=:99.0
@ -14,10 +15,12 @@ install:
- sudo apt-get -qq update - sudo apt-get -qq update
- sudo apt-get -qq install libssl-dev pkg-config libxcb-util0-dev - sudo apt-get -qq install libssl-dev pkg-config libxcb-util0-dev
- if [[ "$QT" == "qt56" ]]; then sudo apt-add-repository -y ppa:beineri/opt-qt56-trusty; sudo apt-get update -qq; sudo apt-get install -qq qt56tools qt56script qt56webengine qt56webchannel qt56declarative qt56x11extras; fi - if [[ "$QT" == "qt56" ]]; then sudo apt-add-repository -y ppa:beineri/opt-qt56-trusty; sudo apt-get update -qq; sudo apt-get install -qq qt56tools qt56script qt56webengine qt56webchannel qt56declarative qt56x11extras; fi
- if [[ "$QT" == "qt57" ]]; then sudo apt-add-repository -y ppa:beineri/opt-qt57-trusty; sudo apt-get update -qq; sudo apt-get install -qq qt57tools qt57script qt57webengine qt57webchannel qt57declarative qt57x11extras; fi
script: script:
- QMAKE="qmake" - QMAKE="qmake"
- if [[ "$QT" == "qt56" ]]; then QMAKE="/opt/qt56/bin/qmake"; fi - if [[ "$QT" == "qt56" ]]; then QMAKE="/opt/qt56/bin/qmake"; fi
- if [[ "$QT" == "qt57" ]]; then QMAKE="/opt/qt57/bin/qmake"; fi
- $QMAKE QMAKE_CXXFLAGS+="-Wextra -Werror" - $QMAKE QMAKE_CXXFLAGS+="-Wextra -Werror"
- make || exit 1 - make || exit 1
- cd scripts && ./run_tests.sh $QMAKE - cd scripts && ./run_tests.sh $QMAKE