Skip to content

Commit

Permalink
Install cpp-coveralls from source to support service name (#529)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Flynn <tom.flynn@gmail.com>
(cherry picked from commit cfe6382)
  • Loading branch information
tomflynn authored and tbachman committed May 28, 2024
1 parent 707d9fd commit b8363f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
# In case we need to run perf, install the below in bionic:
# linux-tools-common
# linux-tools-4.15.0-72-generic
before_install:
- pip install --user cpp-coveralls
install: bash ./.travis/install-dependencies.sh
before_script: sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
env:
Expand Down
1 change: 1 addition & 0 deletions .travis/coveralls-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
if [ "$TEST_SUITE" == "travis-build.sh" ]; then
lcov --capture --directory . --output-file coverage-all.info > /dev/null
lcov --remove coverage-all.info -o coverage-all.info '/usr/include/*' '/usr/local/include/*' '*/test/*' > /dev/null
export COVERALLS_SERVICE_NAME=travis-pro
coveralls --lcov-file coverage-all.info --exclude '/usr/include' --exclude '/usr/local/include' --exclude-pattern '.*/test/.*' --gcov-options '\-lp' > /dev/null
fi
5 changes: 5 additions & 0 deletions .travis/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
set -o errtrace
set -x

git clone https://github.com/eddyxu/cpp-coveralls
pushd cpp-coveralls
sudo ./setup.py install
popd

wget https://travisci-static-artifacts-dd485362-9714-11ea-bb37-0242ac130002.s3.us-east-2.amazonaws.com/artifacts.tgz
tar -xvzf artifacts.tgz
sudo dpkg -i jammy/libnoiro-openvswitch_2.12.0-1_amd64.deb
Expand Down

0 comments on commit b8363f2

Please sign in to comment.