language: cpp
compiler:
    - gcc

before_install:
    - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
    - sudo apt-get update -qq
    - sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev

install:
    - sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev

before_script:
    - qmake -qt=qt5    

script:
    - make

notifications:
    email:
        on_success: change
        on_failure: always

os:
    - linux

language: cpp
compiler:
    - g++-4.8

before_install:
    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
    - sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
    - sudo apt-get update -qq

install:
    - sudo apt-get install -qq gcc-4.8 g++-4.8
    - sudo apt-get install -qq qt5-qmake qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev
    - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90

before_script:
    - qmake -qt=qt5

script:
    - make

notifications:
    email:
        on_success: change
        on_failure: always

os:
    - linux

Use g++ 4.8 to compile
Use g++ 4.8 to compile
