aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml24
1 files changed, 15 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml
index a348464..d148321 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,28 +6,34 @@ dist: bionic
addons:
apt:
sources:
- - sourceline: "ppa:ubuntu-toolchain-r/test"
+ - sourceline: 'ppa:ubuntu-toolchain-r/test'
+ - sourceline: 'deb https://apt.kitware.com/ubuntu/ bionic main'
+ key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc'
packages:
- g++-9
- - lcov
+ - cmake
compiler:
- gcc
-env:
- - CXX=g++-9
-
cache:
directories:
- $HOME/.conan/data
+before_install:
+ - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 20
+ - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 20
+ - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-9 20
+ - sudo update-alternatives --config gcc
+ - sudo update-alternatives --config g++
+ - sudo update-alternatives --config gcov
+
install:
- pip install conan
- conan user
- - wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
- - sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
- - sudo apt-get update
- - sudo apt-get install cmake
+ - git clone git://github.com/linux-test-project/lcov.git
+ - cd lcov && sudo make install
+ - cd ..
script:
- /usr/bin/cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING=YES -DRUN_TESTS_AFTER_BUILD=YES -DENABLE_CODE_COVERAGE=YES -DPRINT_COVERAGE_REPORT=YES