Skip to content

Commit ab96b67

Browse files
committed
[Travis CI] Fix lcov for GCC 8
1 parent 94d015f commit ab96b67

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,17 +94,18 @@ matrix:
9494
- name: "linux build with GCC 8"
9595
stage: test
9696
addons: &gcc8
97-
apt: { sources: ['ubuntu-toolchain-r-test'], packages: ['gcc-8', 'g++-8', 'lcov', 'python3-setuptools', 'python3-pip'] }
97+
apt: { sources: ['ubuntu-toolchain-r-test'], packages: ['gcc-8', 'g++-8', 'python3-setuptools', 'python3-pip'] }
9898
env: CC=gcc-8 CXX=g++-8
9999
# See https://docs.conan.io/en/latest/integrations/travisci.html
100100
install:
101101
- pip3 install conan
102102
- conan user
103103

104-
- name: "linux build with GCC 8"
104+
- name: "linux build with GCC 7"
105105
stage: test
106-
addons: { apt: { sources: ['ubuntu-toolchain-r-test'], packages: ['gcc-8', 'g++-8', 'python3-setuptools', 'python3-pip'] } }
107-
env: CC=gcc-8 CXX=g++-8
106+
addons: &gcc7
107+
apt: { sources: ['ubuntu-toolchain-r-test'], packages: ['gcc-7', 'g++-7', 'python3-setuptools', 'python3-pip'] }
108+
env: CC=gcc-7 CXX=g++-7
108109
install:
109110
- pip3 install conan
110111
- conan user
@@ -148,6 +149,11 @@ matrix:
148149
env: CC=gcc-8 CXX=g++-8
149150
# See https://docs.conan.io/en/latest/integrations/travisci.html
150151
install:
152+
# lcov stable does not yet support GCC 8
153+
- git clone https://github.com/linux-test-project/lcov.git &&
154+
( cd lcov && sudo make install )
155+
# gcov-8 is installed but not the default
156+
- sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-8 10
151157
- pip3 install conan
152158
- conan user
153159
script:

0 commit comments

Comments
 (0)