2016-01-16 19:51:39 +01:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
2015-01-27 12:29:17 +01:00
|
|
|
language: cpp
|
|
|
|
cache: apt
|
|
|
|
|
|
|
|
env:
|
2015-10-12 12:12:18 +02:00
|
|
|
- QT=qt56
|
2016-04-24 10:25:01 +02:00
|
|
|
- QT=qt57
|
2015-01-27 12:29:17 +01:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
|
|
|
|
|
|
|
install:
|
|
|
|
- sudo apt-get -qq update
|
2016-03-16 21:30:21 +01:00
|
|
|
- sudo apt-get -qq install libssl-dev pkg-config libxcb-util0-dev
|
2016-03-16 14:02:52 +01:00
|
|
|
- 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
|
2016-04-24 10:44:04 +02:00
|
|
|
- if [[ "$QT" == "qt57" ]]; then sudo apt-add-repository -y ppa:beineri/opt-qt57-beta-trusty; sudo apt-get update -qq; sudo apt-get install -qq qt57tools qt57script qt57webengine qt57webchannel qt57declarative qt57x11extras; fi
|
2015-01-27 12:29:17 +01:00
|
|
|
|
|
|
|
script:
|
|
|
|
- QMAKE="qmake"
|
2015-10-12 12:12:18 +02:00
|
|
|
- if [[ "$QT" == "qt56" ]]; then QMAKE="/opt/qt56/bin/qmake"; fi
|
2016-04-24 10:25:01 +02:00
|
|
|
- if [[ "$QT" == "qt57" ]]; then QMAKE="/opt/qt57/bin/qmake"; fi
|
2015-08-30 17:42:58 +02:00
|
|
|
- $QMAKE QMAKE_CXXFLAGS+="-Wextra -Werror"
|
2015-01-27 12:29:17 +01:00
|
|
|
- make || exit 1
|
2015-10-12 12:12:18 +02:00
|
|
|
- cd scripts && ./run_tests.sh $QMAKE
|