diff options
author | tezeb <tezeb+github@outoftheblue.pl> | 2017-03-02 16:14:19 +0100 |
---|---|---|
committer | tezeb <tezeb+github@outoftheblue.pl> | 2017-03-10 20:27:07 +0100 |
commit | 00683f2c47458756e396279a0efb66b86bb0c7b3 (patch) | |
tree | 08e2e7d7b5cc3962a382b1e71afba0a83033dcc8 /qtpass.pro | |
parent | 896d8fb9f4e81b13d574d44c30ddf7b3f2949795 (diff) |
Codecov working
Diffstat (limited to 'qtpass.pro')
-rw-r--r-- | qtpass.pro | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -1,9 +1,10 @@ -TEMPLATE = subdirs +!include(qtpass.pri) { error("Couldn't find the qtpass.pri file!") } SUBDIRS += src CONFIG(debug, debug|release) { SUBDIRS += tests + tests.depends = src } OTHER_FILES += LICENSE \ @@ -12,3 +13,24 @@ OTHER_FILES += LICENSE \ RESOURCES += resources.qrc +# add Makefile target to generate code coverage +coverage.target = coverage +coverage.commands = @echo "Coverage DONE!" $$escape_expand(\\n\\t) +coverage.commands += cd src/debug && gcov "*.gcda" 1>/dev/null $$escape_expand(\\n\\t) +coverage.commands += $$escape_expand(\\n) + +coverage.depends = check + +# add Makefile target to generate code coverage using codecov +codecov.target = codecov +codecov.commands = @echo "Starting Codecov!" $$escape_expand(\\n\\t) +coverage.commands += cd src/ && gcov "*.cpp *.h debug/*.gcda" 1>/dev/null $$escape_expand(\\n\\t) +codecov.commands += codecov $$escape_expand(\\n\\t) +codecov.commands += $$escape_expand(\\n) + +codecov.depends = check + +CONFIG(debug, debug|release) { + QMAKE_EXTRA_TARGETS += coverage codecov + QMAKE_CLEAN += 'src/debug/*.gc??' 'src/*.gcov' +} |