diff options
-rw-r--r-- | .travis.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index b3142db9a..a177364f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,8 @@ install: before_script: - ./autogen.sh + # init coverage to 0 (optional) + - lcov --directory . --zerocounters script: - ./configure @@ -19,4 +21,10 @@ script: after_script: - cd tests - ./do.sh -
\ No newline at end of file + +after_success: +- cd ${TRAVIS_BUILD_DIR} +- lcov --directory . --capture --output-file coverage.info # capture coverage info +- lcov --remove coverage.info 'tests/*' 'packages/*' 'm4/*' 'doc/*' --output-file coverage.info # filter out system and test code +- lcov --list coverage.info # debug before upload +- coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info # uploads to coveralls |