diff --git a/.travis.yml b/.travis.yml index 4104079..01bd59f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,11 +18,10 @@ env: - DEFINES=PUGIXML_NO_EXCEPTIONS script: - - make test cxxstd=c++11 defines=$DEFINES config=coverage -j2 + - 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: - - sed -e "s/#####\(.*\)\(\/\/ unreachable.*\)/ 1\1\2/" -i pugixml.cpp.gcov - bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov diff --git a/Makefile b/Makefile index 3d176d1..4632407 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,7 @@ test: $(EXECUTABLE) ./$(EXECUTABLE) @gcov -b -o $(BUILD)/src/ pugixml.cpp.gcda | sed -e '/./{H;$!d;}' -e 'x;/pugixml.cpp/!d;' @find . -name '*.gcov' -and -not -name 'pugixml.cpp.gcov' -exec rm {} + + @sed -i -e "s/#####\(.*\)\(\/\/ unreachable.*\)/ 1\1\2/" pugixml.cpp.gcov else test: $(EXECUTABLE) ./$(EXECUTABLE)