1language: cpp 2 3sudo: required 4 5# See https://launchpad.net/~beineri 6matrix: 7 include: 8 - { os: linux, dist: trusty, compiler: gcc, env: QT=53 PPA=beineri/opt-qt532-trusty } 9 - { os: linux, dist: trusty, compiler: gcc, env: QT=55 PPA=beineri/opt-qt551-trusty } 10 - { os: linux, dist: xenial, compiler: gcc, env: QT=56 PPA=beineri/opt-qt563-xenial } 11 - { os: linux, dist: xenial, compiler: gcc, env: QT=57 PPA=beineri/opt-qt571-xenial } 12 - { os: linux, dist: xenial, compiler: gcc, env: QT=59 PPA=beineri/opt-qt597-xenial } 13 - { os: linux, dist: xenial, compiler: gcc, env: QT=510 PPA=beineri/opt-qt-5.10.1-xenial } 14 - { os: linux, dist: xenial, compiler: gcc, env: QT=511 PPA=beineri/opt-qt-5.11.3-xenial } 15 - { os: linux, dist: xenial, compiler: gcc, env: QT=512 PPA=beineri/opt-qt-5.12.9-xenial } 16 - { os: linux, dist: xenial, compiler: gcc, env: QT=515 PPA=beineri/opt-qt-5.15.0-xenial } 17 - { os: linux, dist: bionic, compiler: gcc, env: QT=511 PPA=beineri/opt-qt-5.11.3-bionic } 18 - { os: linux, dist: bionic, compiler: gcc, env: QT=512 PPA=beineri/opt-qt-5.12.9-bionic } 19 - { os: linux, dist: bionic, compiler: gcc, env: QT=513 PPA=beineri/opt-qt-5.13.2-bionic } 20 - { os: linux, dist: bionic, compiler: gcc, env: QT=514 PPA=beineri/opt-qt-5.14.2-bionic } 21 - { os: osx, osx_image: xcode9.4, compiler: clang, env: QT=5 } 22 - { os: osx, compiler: clang, env: QT=5 } 23 24before_install: 25 - '[ "$TRAVIS_OS_NAME" != linux ] || sudo add-apt-repository -y ppa:$PPA' 26 - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get -qy update' 27 - '[ "$TRAVIS_OS_NAME" != osx ] || brew update' 28 29install: 30 - '[ "$TRAVIS_OS_NAME" != linux ] || sudo apt-get -qy install qt${QT}base qt${QT}script qt${QT}multimedia libgl1-mesa-dev' 31 - '[ "$TRAVIS_OS_NAME" != osx ] || brew install cppcheck qt' 32 - '[ "$TRAVIS_OS_NAME" != osx ] || brew link --force qt' 33 34before_script: 35 - '[[ "$TRAVIS_OS_NAME" != linux || "$CXX" != clang++ ]] || export QMAKESPEC=linux-clang' 36 - '[[ "$TRAVIS_OS_NAME" != linux || "$CXX" != g++ ]] || export QMAKESPEC=linux-g++' 37 - '[[ "$TRAVIS_OS_NAME" != osx || "$CXX" != clang++ ]] || export QMAKESPEC=macx-clang' 38 - '[[ "$TRAVIS_OS_NAME" != osx || "$CXX" != g++ ]] || export QMAKESPEC=macx-g++' 39 - '[[ "$TRAVIS_OS_NAME" != linux || "$PPA" != */opt-* ]] || . /opt/qt$QT/bin/qt$QT-env.sh' 40 - '[[ "$TRAVIS_OS_NAME" != linux || "$PPA" == */opt-* ]] || export QT_SELECT=qt5' 41 - qmake -v 42 43script: 44 - qmake "CONFIG+=debug" QtUkncBtl.pro 45 - make 46