Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Simplify .travis.yml (bsamseth#10)
Browse files Browse the repository at this point in the history
Can now install lcov in a non-manual way, which seems simpler and quite possibly more stable.
  • Loading branch information
bsamseth authored Jan 26, 2019
1 parent 4a55d4b commit ae54eff
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
language: cpp
compiler: gcc
dist: trusty
dist: xenial
notifications:
email: false

addons:
apt:
packages: lcov

before_install:
# C++17
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
Expand All @@ -14,12 +18,6 @@ install:
- sudo apt-get install -qq g++-7
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-7 90

# install newer LCOV (apt version outdated and fails for new gcov).
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
- tar xf lcov_1.11.orig.tar.gz
- sudo make -C lcov-1.11/ install
- which lcov

# Install coverals gem for uploading coverage to coveralls.
- gem install coveralls-lcov
Expand All @@ -35,7 +33,6 @@ script:
- cd $PARENTDIR/build
- cmake -DCMAKE_BUILD_TYPE=Coverage $PARENTDIR
- make
- make gtest
- make coverage

after_success:
Expand Down

0 comments on commit ae54eff

Please sign in to comment.