language: cpp

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

addons:
  apt:
    packages:
      - qt5-default
      - qt5-qmake

before_install:
  - |
    if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      brew update-reset;
      brew upgrade cmake -v;
      brew install qt5;
      export PATH="/usr/local/opt/qt/bin:$PATH";
      export LDFLAGS="-L/usr/local/opt/qt/lib";
      export CPPFLAGS="-I/usr/local/opt/qt/include";
      export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig";
    fi
    
before_script:
  - cmake --version
  - qmake -v
  - mkdir build
  - cd build

script:
  - cmake -DCMAKE_INSTALL_PREFIX:PATH=$(pwd) ..
  - cmake --build . --target install
  - ctest -V
  

language: cpp

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

addons:
  apt:
    packages:
      - qt5-default
      - qt5-qmake

before_install:
  - |
    if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      brew update-reset;
      brew upgrade cmake -v;
      brew install qt5;
      export PATH="/usr/local/opt/qt/bin:$PATH";
      export LDFLAGS="-L/usr/local/opt/qt/lib";
      export CPPFLAGS="-I/usr/local/opt/qt/include";
      export PKG_CONFIG_PATH="/usr/local/opt/qt/lib/pkgconfig";
    fi
    
before_script:
  - cmake --version
  - qmake -v
  - mkdir build
  - cd build

script:
  - cmake -DCMAKE_INSTALL_PREFIX:PATH=$(pwd) ..
  - cmake --build . --target install
  - |
    if [ "$TRAVIS_OS_NAME" == "linux" ]; then
      ctest -V
    fi


Enable tests on Linux only
[NOBIN] Enable tests on Linux only
