language: cpp

matrix:
  include:
    # Test Docker based on Ubuntu 18.04 LTS + gcc
    - os: linux
      dist: trusty
      sudo: required
      services: docker
      script:
        - sh Scripts/travis_build_docker.sh
    # Test OS X 10.12 + Xcode 9 + clang
    #- os: osx
    #  osx_image: xcode9
    #  compiler: clang
    #  script:
    #    - sh Scripts/travis_build.sh

before_install:
  - eval "${MATRIX_EVAL}"
  - if [ $TRAVIS_OS_NAME == linux ]; then 
       sudo apt-get update -qq;
       sudo apt-get install -y --no-install-recommends lcov;
    fi
  - if [ $TRAVIS_OS_NAME == osx ]; then 
       brew update;
       brew install lcov;
       wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz;
       tar xvf release-1.8.0.tar.gz;
       cd googletest-release-1.8.0;
       cmake .;
       sudo make -j $CPU_NUM install && cd ..;
    fi

after_success:
  - bash <(curl -s https://codecov.io/bash)
language: cpp

matrix:
  include:
    # Test Docker based on Ubuntu 18.04 LTS + gcc
    - os: linux
      dist: trusty
      sudo: required
      services: docker
      script:
        - sh Scripts/travis_build_docker.sh
    # Test OS X 10.14 + Xcode 10.2 + clang
    - os: osx
      osx_image: xcode10.2
      compiler: clang
      script:
        - sh Scripts/travis_build.sh

before_install:
  - eval "${MATRIX_EVAL}"
  - if [ $TRAVIS_OS_NAME == linux ]; then 
       sudo apt-get update -qq;
       sudo apt-get install -y --no-install-recommends lcov;
    fi
  - if [ $TRAVIS_OS_NAME == osx ]; then 
       brew update;
       brew install lcov;
       wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz;
       tar xvf release-1.8.0.tar.gz;
       cd googletest-release-1.8.0;
       cmake .;
       sudo make -j $CPU_NUM install && cd ..;
    fi

after_success:
  - bash <(curl -s https://codecov.io/bash)
Update osx_image version (xcode9 -> xcode10.2)
ci: Update osx_image version (xcode9 -> xcode10.2)

