From 46e63309d49e2df34629de2e64b574e85caf8a06 Mon Sep 17 00:00:00 2001 From: The-EDev Date: Sun, 18 Oct 2020 14:17:01 +0300 Subject: [PATCH 1/2] Excluded 3rd party libraries from coverage --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 45b15f1a6..528b01720 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,6 +51,6 @@ script: make -j2 && ctest -V -j2 after_success: - cd .. - - if [ "$PUSH_COVERAGE" == "ON" ]; then coveralls -i include --gcov-options '\-lp'; fi + - if [ "$PUSH_COVERAGE" == "ON" ]; then coveralls -i include -e include/corw/http_parser_merged.h -e include/corw/TinySHA1.hpp --gcov-options '\-lp'; fi - chmod +x generateDocumentationAndDeploy.sh - test "$TRAVIS_BRANCH" = "master" && test $TRAVIS_PULL_REQUEST = "false" && test "$TRAVIS_BUILD_DOCS" = "ON" && ./generateDocumentationAndDeploy.sh From cc7398ea5ebb8a58d2615e41ec63a75ca53551be Mon Sep 17 00:00:00 2001 From: The-EDev Date: Sun, 18 Oct 2020 21:41:36 +0300 Subject: [PATCH 2/2] properly excluded 3rd part libraries from coverage and documentation. --- .travis.yml | 2 +- Doxyfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78cc6b531..6c7372c52 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,6 +52,6 @@ script: make -j2 && ctest -V -j2 after_success: - cd .. - - if [ "$PUSH_COVERAGE" == "ON" ]; then coveralls -i include -e include/corw/http_parser_merged.h -e include/corw/TinySHA1.hpp --gcov-options '\-lp'; fi + - if [ "$PUSH_COVERAGE" == "ON" ]; then coveralls -i include --exclude-pattern .*/http_parser_merged.h --exclude-pattern .*/TinySHA1.hpp --gcov-options '\-lp'; fi - chmod +x generateDocumentationAndDeploy.sh - test "$TRAVIS_BRANCH" = "master" && test $TRAVIS_PULL_REQUEST = "false" && test "$TRAVIS_BUILD_DOCS" = "ON" && ./generateDocumentationAndDeploy.sh diff --git a/Doxyfile b/Doxyfile index 6b22383e1..5a38a858b 100644 --- a/Doxyfile +++ b/Doxyfile @@ -880,8 +880,8 @@ RECURSIVE = YES # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = include/crow/http_parser_merged.h \ - include/crow/TinySHA1.hpp +EXCLUDE = $(TRAVIS_BUILD_DIR)/include/crow/http_parser_merged.h \ + $(TRAVIS_BUILD_DIR)/include/crow/TinySHA1.hpp # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded