Skip to content

Commit

Permalink
Run build tests with ppa:beineri
Browse files Browse the repository at this point in the history
(refer issue #2)
  • Loading branch information
Mr-Kumar-Abhishek committed May 16, 2016
1 parent dbfe059 commit 60c494e
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +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

script:
- qmake -v
- qmake
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 clean
- make check

notifications:
email: true

0 comments on commit 60c494e

Please sign in to comment.