build: Fix -o gcov option
Also upload just pugixml.cpp.gcov to codecov to avoid issues the script has with old gcov.
This commit is contained in:
parent
c7acc6d1f4
commit
abdba2235d
2 changed files with 2 additions and 2 deletions
|
@ -8,4 +8,4 @@ env:
|
|||
- DEFINES=PUGIXML_WCHAR_MODE
|
||||
- DEFINES=PUGIXML_COMPACT
|
||||
script: make test defines=$DEFINES config=coverage -j2
|
||||
after_success: bash <(curl -s https://codecov.io/bash)
|
||||
after_success: bash <(curl -s https://codecov.io/bash) -f pugixml.cpp.gcov
|
||||
|
|
2
Makefile
2
Makefile
|
@ -56,7 +56,7 @@ ifeq ($(config),coverage)
|
|||
test: $(EXECUTABLE)
|
||||
-@find $(BUILD) -name '*.gcda' -exec rm {} +
|
||||
./$(EXECUTABLE)
|
||||
@gcov -b -o=$(BUILD)/src pugixml.cpp.gcda | sed -e '/./{H;$!d;}' -e 'x;/pugixml.cpp/!d;'
|
||||
@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 {} +
|
||||
else
|
||||
test: $(EXECUTABLE)
|
||||
|
|
Loading…
Add table
Reference in a new issue