1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00
falkonOfficial/.travis.yml

24 lines
773 B
YAML
Raw Normal View History

2014-02-01 16:48:15 +01:00
language: cpp
cache: apt
env:
- QT=qt4
- QT=qt5
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
2014-02-01 16:48:15 +01:00
install:
- sudo apt-get -qq update
- sudo apt-get -qq install libssl-dev pkg-config libhunspell-dev
- if [[ "$QT" == "qt4" ]]; then sudo apt-get -qq install libqt4-dev libqt4-webkit libqt4-sql-sqlite libqjson-dev; fi
- if [[ "$QT" == "qt5" ]]; then sudo apt-add-repository -y ppa:beineri/opt-qt511; sudo apt-get update -qq; sudo apt-get install -qq qt51base qt51webkit qt51tools qt51script libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev; fi
2014-02-01 16:48:15 +01:00
script:
- QMAKE="qmake"
- if [[ "$QT" == "qt5" ]]; then QMAKE="/opt/qt51/bin/qmake"; fi
- $QMAKE QMAKE_CXXFLAGS+="-Wextra -Werror"
- make
- cd scripts && ./run_tests.sh $QMAKE