Skip to content
Snippets Groups Projects
Commit 10997afc authored by Meredith L. Patterson's avatar Meredith L. Patterson
Browse files

adding code coverage to automation

parent 9dbd2deb
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,8 @@ matrix: ...@@ -92,6 +92,8 @@ matrix:
env: BINDINGS=cpp CC=clang env: BINDINGS=cpp CC=clang
before_install: before_install:
- sudo apt-get update -qq - 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" != "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" == "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 - if [ "$BINDINGS" == "python" ]; then sudo apt-get install -qq python-dev; fi
...@@ -100,11 +102,13 @@ install: true ...@@ -100,11 +102,13 @@ install: true
before_script: before_script:
- if [ "$BINDINGS" == "php" ]; then phpenv config-add src/bindings/php/hammer.ini; fi - if [ "$BINDINGS" == "php" ]; then phpenv config-add src/bindings/php/hammer.ini; fi
script: 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: notifications:
irc: irc:
channels: channels:
- "irc.upstandinghackers.com#hammer" - "irc.upstandinghackers.com#hammer"
use_notice: true use_notice: true
skip_join: true skip_join: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment