1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00
falkonOfficial/.travis.yml
2016-03-16 21:30:21 +01:00

28 lines
709 B
YAML

sudo: required
dist: trusty
language: cpp
cache: apt
env:
- QT=qt56
branches:
only:
- 'master'
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- sudo apt-get -qq update
- 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
script:
- QMAKE="qmake"
- if [[ "$QT" == "qt56" ]]; then QMAKE="/opt/qt56/bin/qmake"; fi
- $QMAKE QMAKE_CXXFLAGS+="-Wextra -Werror"
- make || exit 1
- cd scripts && ./run_tests.sh $QMAKE