diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-03-16 17:58:58 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2021-03-16 20:27:37 +0100 |
commit | 4bba45cc676e9940199f5ef439a8bf24b96f6bfe (patch) | |
tree | c290d3cea534bcb6f66e1e6726c1c6d9a302cff0 | |
parent | aea175985cac13c7266b11ad9c4a8b86998a006f (diff) |
ci: Add test stage, reusing the build one
-rw-r--r-- | .gitlab-ci.yml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b436aa..0ca5c8e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,16 +12,38 @@ variables: redhat-rpm-config systemd-devel vala + TEST_DEPENDENCIES: gcovr + python3-dbusmock + python3-gobject-base + +stages: + - build + - test build-fedora: image: fedora:rawhide stage: build before_script: - - dnf install -y $DEPENDENCIES + - dnf install -y $DEPENDENCIES $([ $CI_JOB_STAGE = test ] && echo $TEST_DEPENDENCIES) script: - meson -Dgtk_doc=true _build - ninja -C _build all +test-fedora: + extends: + - build-fedora + stage: test + script: + - meson _build -Db_coverage=true + - meson test -C _build --print-errorlogs --no-stdsplit --timeout-multiplier 3 + - ninja -C _build coverage + - cat _build/meson-logs/coverage.txt + artifacts: + name: log-and-coverage + when: always + paths: + - _build/meson-logs + #build-ubuntu: # image: ubuntu:rolling # before_script: |