language: cpp
os:
  - linux
  - osx
sudo: required
dist: trusty  
compiler:
  - gcc
  - clang
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qt5-default qt5-qmake catch ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt5 ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$(brew --prefix)/opt/qt5/bin:$PATH ; fi
script:
- qmake
- make
- chmod +x libs/codecov.sh
- libs/codecov.sh
after_success:
  - bash <(curl -s https://codecov.io/bash)

language: cpp
os:
  - linux
  - osx
sudo: required
dist: trusty  
compiler:
  - gcc
  - clang
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install qt5-default qt5-qmake catch ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install qt5 ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$(brew --prefix)/opt/qt5/bin:$PATH ; fi
script:
- qmake
- make
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then chmod +x libs/codecov.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then libs/codecov.sh ; fi
after_success:
  - bash <(curl -s https://codecov.io/bash)

Check code coverage only on linux os
Check code coverage only on linux os
