Skip to content

Commit

Permalink
Add coveralls to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Jul 14, 2018
1 parent be17813 commit 2e1e5c0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ addons:
- sshpass
- lcov

# Install coveralls sender
before_install:
- pip install --user cpp-coveralls

# Qt packages for OS X
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
Expand Down Expand Up @@ -61,13 +65,17 @@ script:
- ./build/tests/tests

after_success:
# Upload code coverage
# Upload code coverage (codecov)
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
lcov --directory . --capture --output-file coverage.info &&
lcov --remove coverage.info '/usr/*' --output-file coverage.info &&
lcov --list coverage.info &&
bash <(curl -s https://codecov.io/bash)
; fi
# Upload code coverage (coveralls)
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
coveralls --exclude build --exclude e2e --exclude tests --exclude CrashReporter --gcov-options '\-lp'
; fi
# Generate release name
- if [[ "$TRAVIS_TAG" == "" ]]; then
export BUILD_LABEL=$TRAVIS_BRANCH
Expand Down

0 comments on commit 2e1e5c0

Please sign in to comment.