blob: f523e70d2ffa7a72f2d0d93a8754692eeeb20dc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
os: linux
language: python
python: "3.7"
dist: bionic
addons:
apt:
sources:
- 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
- cmake
- libperlio-gzip-perl
- libjson-perl
compiler:
- gcc
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
- 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
- /usr/bin/cmake --build build --target all --parallel $(nproc)
|