Browse Source

Ignore test and examples directory for coveralls (#1375)

* Ignore test directory for coveralls

* Exclude examples from coverage

* Exclude CMake feature test source files
Mark Giraud 6 years ago
parent
commit
187a616f2a
2 changed files with 2 additions and 1 deletions
  1. 1 0
      .gitignore
  2. 1 1
      tools/travis/travis_linux_script.sh

+ 1 - 0
.gitignore

@@ -16,6 +16,7 @@
 *.pyc
 *.gcno
 *.gcda
+*.swp
 .dirstamp
 /bin
 m4

+ 1 - 1
tools/travis/travis_linux_script.sh

@@ -217,7 +217,7 @@ else
     echo -e "\r\n== -> Current repo: ${TRAVIS_REPO_SLUG} =="
     if [ "$CC" = "gcc" ] && [ "${TRAVIS_REPO_SLUG}" = "open62541/open62541" ]; then
         echo -en "\r\n==   Building coveralls for ${TRAVIS_REPO_SLUG} ==" && echo -en 'travis_fold:start:script.build.coveralls\\r'
-        coveralls -E '.*\.h' -E '.*CMakeCXXCompilerId\.cpp' -E '.*CMakeCCompilerId\.c' -r ../ || true # ignore result since coveralls is unreachable from time to time
+        coveralls -E '.*/build/CMakeFiles/.*' -E '.*/examples/.*' -E '.*/tests/.*' -E '.*\.h' -E '.*CMakeCXXCompilerId\.cpp' -E '.*CMakeCCompilerId\.c' -r ../ || true # ignore result since coveralls is unreachable from time to time
         echo -en 'travis_fold:end:script.build.coveralls\\r'
     fi
     cd .. && rm build -rf