diff --git a/.travis.yml b/.travis.yml index 8973c57ee8376d774f79bd15d9ee4cf71ce485f7..eb7a752c3769f10a8f6d4361c1c4d1ca7975d522 100644 --- a/.travis.yml +++ b/.travis.yml @@ -92,6 +92,8 @@ matrix: env: BINDINGS=cpp CC=clang before_install: - sudo apt-get update -qq + - sudo apt-get install lcov + - gem install coveralls-lcov - if [ "$BINDINGS" != "none" ]; then sudo apt-get install -qq swig; fi - if [ "$BINDINGS" == "perl" ]; then sudo add-apt-repository ppa:dns/irc -y; sudo apt-get update -qq; sudo apt-get install -qq swig=2.0.8-1irc1~12.04; fi - if [ "$BINDINGS" == "python" ]; then sudo apt-get install -qq python-dev; fi @@ -100,11 +102,13 @@ install: true before_script: - if [ "$BINDINGS" == "php" ]; then phpenv config-add src/bindings/php/hammer.ini; fi script: - - scons bindings=$BINDINGS test + - scons bindings=$BINDINGS test --coverage +after_success: + - lcov --capture --directory build/opt/src --output-file coverage.info + - coveralls-lcov coverage.info notifications: irc: channels: - "irc.upstandinghackers.com#hammer" use_notice: true skip_join: true -