stages: - build - deploy variables: DEPENDENCIES: dbus-x11 diffutils gcc gtk-doc meson ninja-build openssh python redhat-rpm-config fedora:Werror: image: fedora:latest stage: build before_script: - dnf upgrade -y - dnf install -y 'dnf-command(builddep)' $DEPENDENCIES - dnf builddep -y gcr - dbus-uuidgen --ensure script: - meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations - ninja -C _build - eval `dbus-launch --sh-syntax` - bash +x ./.gitlab-ci/run-tests.sh artifacts: reports: junit: "_build/${CI_JOB_NAME}-report.xml" name: "gcr-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" when: always paths: - "_build/config.h" - "_build/meson-logs" - "_build/${CI_JOB_NAME}-report.xml" fedora:asan: image: fedora:latest stage: build tags: - asan # LSAN needs CAP_SYS_PTRACE before_script: - dnf upgrade -y - dnf install -y 'dnf-command(builddep)' $DEPENDENCIES libasan - dnf builddep -y gcr - dbus-uuidgen --ensure script: - meson _build -Dsanitize=address - eval `dbus-launch --sh-syntax` - meson test -C _build fedora:ubsan: image: fedora:latest stage: build before_script: - dnf upgrade -y - dnf install -y 'dnf-command(builddep)' $DEPENDENCIES libubsan - dnf builddep -y gcr - dbus-uuidgen --ensure script: - meson _build -Dsanitize=undefined - eval `dbus-launch --sh-syntax` - meson test -C _build fedora:coverage: image: fedora:latest stage: build before_script: - dnf upgrade -y - dnf install -y 'dnf-command(builddep)' $DEPENDENCIES lcov - dnf builddep -y gcr - dbus-uuidgen --ensure script: - meson _build -Db_coverage=true - eval `dbus-launch --sh-syntax` - meson test -C _build - ninja coverage-html -C _build coverage: '/^\s+lines.+:\s+([\d.]+\%)\s+/' artifacts: name: "gcr-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}" paths: - _build/meson-logs/coveragereport/ pages: stage: deploy script: - mv _build/meson-logs/coveragereport/ public/ artifacts: when: on_success paths: - public