Commit b806a9b5 authored by Jakub Jelen's avatar Jakub Jelen Committed by Marc-André Lureau

Set up the CI in gitlab including coverage reports

Signed-off-by: default avatarJakub Jelen <jjelen@redhat.com>
[ Marc-André - simplify, make it work on fdo gitlab ]
Signed-off-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
parent 6b0cbef4
image: fedora:latest
before_script:
- dnf update -y
- dnf install -y gcc automake libtool make pkgconfig autoconf-archive nss-devel glib2-devel opensc gnutls-utils nss-tools openssl softhsm lcov valgrind
Build:
stage: build
script:
- ./autogen.sh
- make
Check:
stage: test
script:
- ./autogen.sh --enable-code-coverage
- make check
- make code-coverage-capture
- lcov --summary libcacard-*-coverage.info
artifacts:
expire_in: '1 week'
paths:
- test-suite.log
- libcacard-*-coverage
Memcheck:
stage: test
script:
- ./autogen.sh
- make memcheck-local
allow_failure: true
pages:
stage: deploy
dependencies:
- Check
script:
- mv *-coverage/ public/
artifacts:
paths:
- public
expire_in: 30 days
only:
- master
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