Commit 37cc192e authored by Alberto Mardegan's avatar Alberto Mardegan Committed by Alberto Mardegan

CI: Install LCOV

Trusty version is too old.
parent 98b7e120
......@@ -15,7 +15,7 @@ before_script:
- |
apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y \
pkg-config libglu1-mesa-dev libopencv-imgproc-dev libopencv-objdetect-dev \
sqlite3 lcov gcovr \
sqlite3 gcovr \
wget
- ln -f /usr/bin/g++-7 /usr/bin/g++
- ln -f /usr/bin/gcc-7 /usr/bin/gcc
......@@ -75,7 +75,18 @@ build_desktop:
test_desktop:
stage: test
cache:
paths:
- apt-cache/
- lcov
script:
- LCOV_DIR="$PWD/lcov"
- 'if [ ! -x "$LCOV_DIR/bin/geninfo" ]; then'
- wget -c -nv "https://github.com/linux-test-project/lcov/releases/download/v1.13/lcov-1.13.tar.gz"
- tar xzf lcov-1.13.tar.gz
- cd lcov-1.13 && make PREFIX="$LCOV_DIR" install && cd -
- fi
- export PATH="$LCOV_DIR/bin:$PATH"
- STAGING="$PWD/staging"
- find build | xargs touch # Avoid rebuilding
- cd build
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment