2014-02-01 16:48:15 +01:00
|
|
|
language: cpp
|
2014-02-04 12:32:01 +01:00
|
|
|
cache: apt
|
2014-02-01 17:38:46 +01:00
|
|
|
|
2014-02-04 11:56:25 +01:00
|
|
|
env:
|
|
|
|
- QT=qt4
|
|
|
|
- QT=qt5
|
|
|
|
|
2014-02-01 17:38:46 +01:00
|
|
|
before_install:
|
2014-02-04 11:56:25 +01:00
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
2014-02-01 17:38:46 +01:00
|
|
|
|
2014-02-01 16:48:15 +01:00
|
|
|
install:
|
|
|
|
- sudo apt-get -qq update
|
2014-02-04 11:56:25 +01:00
|
|
|
- sudo apt-get -qq install libssl-dev pkg-config libhunspell-dev
|
2014-02-04 12:03:27 +01:00
|
|
|
- if [[ "$QT" == "qt4" ]]; then sudo apt-get -qq install libqt4-dev libqt4-webkit libqt4-sql-sqlite; fi
|
2014-02-04 12:56:23 +01:00
|
|
|
- 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 17:38:46 +01:00
|
|
|
|
2014-02-01 16:48:15 +01:00
|
|
|
script:
|
2014-02-04 12:21:23 +01:00
|
|
|
- QMAKE="qmake"
|
|
|
|
- if [[ "$QT" == "qt5" ]]; then QMAKE="/opt/qt51/bin/qmake"; fi
|
2014-02-04 12:56:23 +01:00
|
|
|
- $QMAKE QMAKE_CXXFLAGS+="-Wextra -Werror"
|
2014-02-04 12:32:01 +01:00
|
|
|
- make
|
2014-02-04 12:21:23 +01:00
|
|
|
- cd scripts && ./run_tests.sh $QMAKE
|