language: cpp
sudo: required
compiler:
  - gcc
before_install:
  - lsb_release -a
  - sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
  - sudo apt-add-repository -y ppa:beineri/opt-qt562
  - sudo apt-get -qq update
  - sudo apt-get -qq install g++-5 libc6-i386 qt56tools qt56base
  - export CXX="g++-5"
  - export CC="gcc-5"
install:
  - git clone https://github.com/Reactive-Extensions/RxCpp.git RxCpp
script:
  - QTDIR="/opt/qt56"
  - PATH="$QTDIR/bin:$PATH"
  - qt56-env.sh
  - cd test
  - qmake test.pro
  - make CXX="g++-5" CC="gcc-5" all
  - ./rxtest

language: cpp

matrix:
  include:
    - os: linux
      compiler: gcc
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
            - sourceline: 'ppa:beineri/opt-qt562'
          packages:
            - g++-5
            - libc6-i386
            - qt56tools
            - qt56base
      before_install:
        - export CC=gcc-5
        - export CXX=g++-5
        - export PATH="/opt/qt56/bin/:${PATH}"
        - qt56-env.sh
    - os: osx
      compiler: clang
      before_install:
        - brew install qt
        - export PATH="/usr/local/opt/qt/bin/:${PATH}"

install:
  - git clone https://github.com/Reactive-Extensions/RxCpp.git RxCpp
script:
  - cd test
  - qmake test.pro
  - make CXX="${CXX}" CC="${CC}" all
  - ./rxtest

Add OS X support to Travis CI
Add OS X support to Travis CI
