Skip to content
Snippets Groups Projects
  • Arseny Kapoulkine's avatar
    ba84465d
    Move unreachable line handling to Makefile · ba84465d
    Arseny Kapoulkine authored
    This allows us to reuse this code for MinGW builds.
    
    Additionally disable coverage step for Linux clang - it looks like
    Travis has a mismatch in the version of gcov info between clang and gcov
    which causes gcov to crash - somehow this crash isn't picked up as a
    build error.
    ba84465d
    History
    Move unreachable line handling to Makefile
    Arseny Kapoulkine authored
    This allows us to reuse this code for MinGW builds.
    
    Additionally disable coverage step for Linux clang - it looks like
    Travis has a mismatch in the version of gcov info between clang and gcov
    which causes gcov to crash - somehow this crash isn't picked up as a
    build error.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.travis.yml 695 B
language: cpp
os:
  - linux
  - osx
compiler:
  - clang
  - gcc

matrix:
  exclude:
    - os: osx
      compiler: gcc

env:
  - DEFINES=standard
  - DEFINES=PUGIXML_WCHAR_MODE
  - DEFINES=PUGIXML_COMPACT
  - DEFINES=PUGIXML_NO_EXCEPTIONS

script:
  - if [[ ! ( "$CXX" == "clang++" && "$TRAVIS_OS_NAME" == "linux" ) ]]; then make test cxxstd=c++11 defines=$DEFINES config=coverage -j2; fi
  - if [[ "$CXX" == "clang++" ]]; then make test cxxstd=c++11 defines=$DEFINES config=sanitize -j2; fi
  - make test cxxstd=c++11 defines=$DEFINES config=release -j2
  - make test cxxstd=c++98 defines=$DEFINES config=debug -j2

after_success:
  - bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov