Skip to content

Commit e739499

Browse files
committed
Add coveralls report collection to linux/gcc/static.
1 parent 6359e7d commit e739499

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,16 @@ script:
8282

8383
after_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

0 commit comments

Comments
 (0)