language: cpp
sudo: false

addons:
 apt:
  packages:
   - sqlite3
   - qt4-dev-tools

matrix:
 include:
  - os: linux
    compiler: gcc
  - os: osx
    compiler: clang

before_install:
  - '[[ "$TRAVIS_OS_NAME" != "osx" ]] || brew update'

install:
  - '[[ "$TRAVIS_OS_NAME" != "osx" ]] || brew install qt sqlite'
  - '[[ "$TRAVIS_OS_NAME" != "osx" ]] || brew link --force qt'

before_script:
  - cd core
  - mkdir build
  - cd build
  - cmake ..

script: make

notifications:
  on_success: change
  on_failure: always
