language: cpp
matrix:
  fast_finish: true
  include:
    # linux precise debug build, precise + gcc + qt4
    - os: linux
      env: QT4=1 BUILDTYPE=Debug DIST=precise
    # linux debug build, trusty + gcc + qt5
    - os: linux
      dist: trusty
      env: QT4=0 BUILDTYPE=Debug DIST=trusty
    # osx debug build, osx + clang + qt5
    - os: osx
      env: QT4=0 BUILDTYPE=Debug
    # linux precise release build, precise + gcc + qt4
    - os: linux
      env: QT4=1 BUILDTYPE=Release DIST=precise
    # linux trusty release build, precise + gcc + qt5
    - os: linux
      dist: trusty
      env: QT4=0 BUILDTYPE=Release DIST=trusty
    # osx release build, osx + gcc + qt5
    - os: osx
      env: QT4=0 BUILDTYPE=Release
script: ./travis-compile.sh
install: ./travis-dependencies.sh
cache: apt
notifications:
  slack: cockatrice:dNA81maCU8SAHB7pYrCWiQg9
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/d94969c3b01b22cbdcb7
    on_success: change
    on_failure: change
    on_start: never
deploy:
  provider: bintray
  file: "build/bintray_deploy.json"
  user: "ctrlaltca"
  key:
    secure: DtVeeLoi5fZG/RvLTecRnRQGW9fVNS4Oa5iut2vJa14PdKBAJiXACQ0EzcRJFsbtby7MyMc2IVtT5skpvsaSqkpaxoBaL1YtKwJ4CTkYcm2MDWHS7UlijuxxTjI6BnaL3lcCCIeG+NHBZa3dV2YNJ1sWv6Xmiiix1ujPPW8VtnM=
  on:
    condition: $BUILDTYPE = Release