Skip to content

Commit

Permalink
Merge pull request #989 from pmienk/master
Browse files Browse the repository at this point in the history
Regenerate artifacts.
  • Loading branch information
evoskuil authored Jul 11, 2018
2 parents b289f0c + 826ad30 commit 2e1e679
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ matrix:
- os: linux
compiler: gcc
env: LINK=static
addons:
apt:
packages:
- lcov
fast_finish:
- true

Expand Down Expand Up @@ -90,13 +86,18 @@ script:

after_success:

# Install coveralls and current lcov.
# Download and unpack lcov > 1.10
- if [[ $LINUX && $GCC && $STATIC ]]; then wget https://github.com/linux-test-project/lcov/releases/download/v1.12/lcov-1.12.tar.gz; fi
- if [[ $LINUX && $GCC && $STATIC ]]; then tar xzf lcov-1.12.tar.gz; fi
- if [[ $LINUX && $GCC && $STATIC ]]; then cd lcov-1.12; PREFIX="$TRAVIS_BUILD_DIR/my-prefix" make install; cd ..; fi

# Install coveralls.
- if [[ $LINUX && $GCC && $STATIC ]]; then gem install coveralls-lcov; fi

# Capture coverage info, filter out system and test code, and debug before upload.
- if [[ $LINUX && $GCC && $STATIC ]]; then lcov --directory . --capture --output-file coverage.info; fi
- if [[ $LINUX && $GCC && $STATIC ]]; then lcov --remove coverage.info "/usr/*" "$TRAVIS_BUILD_DIR/my-prefix/*" "my-build/*" "examples/*" "test/*" --output-file coverage.info; fi
- if [[ $LINUX && $GCC && $STATIC ]]; then lcov --list coverage.info; fi
- if [[ $LINUX && $GCC && $STATIC ]]; then $TRAVIS_BUILD_DIR/my-prefix/usr/bin/lcov --directory . --capture --output-file coverage.info; fi
- if [[ $LINUX && $GCC && $STATIC ]]; then $TRAVIS_BUILD_DIR/my-prefix/usr/bin/lcov --remove coverage.info "/usr/*" "$TRAVIS_BUILD_DIR/my-prefix/*" "my-build/*" "examples/*" "test/*" --output-file coverage.info; fi
- if [[ $LINUX && $GCC && $STATIC ]]; then $TRAVIS_BUILD_DIR/my-prefix/usr/bin/lcov --list coverage.info; fi

# Upload coverage info to coveralls service (--repo-token <private coveralls repo token>).
- if [[ $LINUX && $GCC && $STATIC ]]; then coveralls-lcov coverage.info; fi
Expand Down

0 comments on commit 2e1e679

Please sign in to comment.