From 0d9671a16a299d989227190b499a0ea5ee77c1a3 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 16 May 2016 11:08:03 +0530 Subject: [PATCH] Build tests with ppa:beineri (refer issue #11) --- .travis.yml | 48 +++++++++++++++++++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 24aea7c..f23b479 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,43 @@ language: cpp +compiler: + - gcc + +sudo: required +dist: trusty + +env: + - QT_BASE=48 + - QT_BASE=51 + - QT_BASE=52 + - QT_BASE=53 + - QT_BASE=54 + - QT_BASE=55 + - QT_BASE=56 + before_install: - - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa + - if [ "$QT_BASE" = "48" ]; then sudo add-apt-repository ppa:beineri/opt-qt487-trusty -y; fi + - if [ "$QT_BASE" = "51" ]; then sudo add-apt-repository ppa:beineri/opt-qt511-trusty -y; fi + - if [ "$QT_BASE" = "52" ]; then sudo add-apt-repository ppa:beineri/opt-qt521-trusty -y; fi + - if [ "$QT_BASE" = "53" ]; then sudo add-apt-repository ppa:beineri/opt-qt532-trusty -y; fi + - if [ "$QT_BASE" = "54" ]; then sudo add-apt-repository ppa:beineri/opt-qt542-trusty -y; fi + - if [ "$QT_BASE" = "55" ]; then sudo add-apt-repository ppa:beineri/opt-qt551-trusty -y; fi + - if [ "$QT_BASE" = "56" ]; then sudo add-apt-repository ppa:beineri/opt-qt56-trusty -y; fi - sudo apt-get update -qq - - sudo apt-get install -qq g++ qt4-qmake libqt4-dev qt5-qmake qtbase5-dev -script: - - qmake -qt=qt4 -v - - qmake -qt=qt4 - - make - - make -k check - - make clean - - qmake -qt=qt5 -v - - qmake -qt=qt5 +install: + - if [ "$QT_BASE" = "48" ]; then sudo apt-get install -qq opt-qt4-qmake opt-qt4-dev-tools; source /opt/qt-4.8/bin/qt-4.8-env.sh; fi + - if [ "$QT_BASE" = "51" ]; then sudo apt-get install -qq qt51base; source /opt/qt51/bin/qt51-env.sh; fi + - if [ "$QT_BASE" = "52" ]; then sudo apt-get install -qq qt52base; source /opt/qt52/bin/qt52-env.sh; fi + - if [ "$QT_BASE" = "53" ]; then sudo apt-get install -qq qt53base; source /opt/qt53/bin/qt53-env.sh; fi + - if [ "$QT_BASE" = "54" ]; then sudo apt-get install -qq qt54base; source /opt/qt54/bin/qt54-env.sh; fi + - if [ "$QT_BASE" = "55" ]; then sudo apt-get install -qq qt55base; source /opt/qt55/bin/qt55-env.sh; fi + - if [ "$QT_BASE" = "56" ]; then sudo apt-get install -qq qt56base; source /opt/qt56/bin/qt56-env.sh; fi + +script: + - qmake -r - make - - make -k check + - make check + +notifications: + email: true \ No newline at end of file