File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,3 +82,16 @@ script:
8282
8383after_success :
8484
85+ # Install coveralls and current lcov.
86+ - if [[ $LINUX && $GCC && $STATIC ]]; then wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz; fi
87+ - if [[ $LINUX && $GCC && $STATIC ]]; then tar xf lcov_1.11.orig.tar.gz; fi
88+ - if [[ $LINUX && $GCC && $STATIC ]]; then sudo make -C lcov-1.11 install; fi
89+ - if [[ $LINUX && $GCC && $STATIC ]]; then gem install coveralls-lcov; fi
90+
91+ # Capture coverage info, filter out system and test code, and debug before upload.
92+ - if [[ $LINUX && $GCC && $STATIC ]]; then lcov --directory . --capture --output-file coverage.info; fi
93+ - if [[ $LINUX && $GCC && $STATIC ]]; then lcov --remove coverage.info "/usr/*" "$TRAVIS_BUILD_DIR/my-prefix/*" "my-build/*" "test/*" --output-file coverage.info; fi
94+ - if [[ $LINUX && $GCC && $STATIC ]]; then lcov --list coverage.info; fi
95+
96+ # Upload coverage info to coveralls service (--repo-token <private coveralls repo token>).
97+ - if [[ $LINUX && $GCC && $STATIC ]]; then coveralls-lcov coverage.info; fi
You can’t perform that action at this time.
0 commit comments