mirror of
https://github.com/zeux/pugixml.git
synced 2024-12-28 06:10:55 +08:00
927d321d90
codecov.io does not seem to support lcov regex customization; additionally, we can't just replace unreachable with LCOV_LINE_EXCL in gcov file - so we have to patch the ##### indicator (which suggests the line hasn't been hit) with 1. See also https://github.com/codecov/support/issues/144
20 lines
539 B
YAML
20 lines
539 B
YAML
language: cpp
|
|
sudo: required
|
|
dist: trusty
|
|
os:
|
|
- linux
|
|
- osx
|
|
env:
|
|
- DEFINES=standard
|
|
- DEFINES=PUGIXML_WCHAR_MODE
|
|
- DEFINES=PUGIXML_COMPACT
|
|
- DEFINES=PUGIXML_NO_EXCEPTIONS
|
|
script:
|
|
- make test cxxstd=c++11 defines=$DEFINES config=coverage -j2
|
|
- make test cxxstd=c++11 defines=$DEFINES config=release -j2
|
|
- make test cxxstd=c++98 defines=$DEFINES config=debug -j2
|
|
|
|
after_success:
|
|
- sed -e "s/#####\(.*\)\(\/\/ unreachable.*\)/ 1\1\2/" -i pugixml.cpp.gcov
|
|
- bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov
|