Skip to content
Snippets Groups Projects
.travis.yml 1.04 KiB
Newer Older
  • Learn to ignore specific revisions
  • Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    ---
    
    language: cpp
    sudo: required
    dist: trusty
    
    services:
      - docker
    
    notifications:
      email: false
    
    matrix:
      include:
        - os: osx
    
    Nicolas Werner's avatar
    Nicolas Werner committed
          # osx_image: xcode9 # don't specify an image here to use the default
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
          compiler: clang
    
        - os: linux
          compiler: gcc
          env:
            - CXX_VERSION=g++-8
            - CC_VERSION=gcc-8
    
    Nicolas Werner's avatar
    Nicolas Werner committed
            - CMAKE_GENERATOR=Ninja
    
            - COVERAGE=ON
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
        - os: linux
          compiler: clang
          env:
    
            - CXX_VERSION=clang++-6.0
    
            - CC_VERSION=clang-6.0
    
    Nicolas Werner's avatar
    Nicolas Werner committed
            - CMAKE_GENERATOR=Ninja
    
    cache:
      directories:
        - .deps
    
    install: ./.ci/install.sh
    
    Konstantinos Sideris's avatar
    Konstantinos Sideris committed
    
    script:
      - $CXX --version
      - cmake --version
    
    
      # Start the synapse server to run the tests.
      - if [ $TRAVIS_OS_NAME == linux ]; then make synapse; fi
    
    
      # Build the lib and run the linter & tests.
      - ./.ci/script.sh
    
    
    after_success:
    
      # Generate coverage report and upload report to CodeCov.
    
        if [ "$COVERAGE" == ON ]; then
          ./.ci/coverage.sh && \
          bash <(curl -s https://codecov.io/bash) -f build/coverage.info || echo "Codecov failed"