diff options
author | Jan Rybar <jrybar@redhat.com> | 2020-10-26 17:00:27 +0000 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2020-10-26 17:00:27 +0000 |
commit | 957a015157fd359d9679540f664183e4b9492896 (patch) | |
tree | 41e7f5541d01e479e588cd3dd5a1769e1af0127a /.gitlab-ci.yml | |
parent | ff4c2144f0fb1325275887d9e254117fcd8a1b52 (diff) | |
download | polkit-957a015157fd359d9679540f664183e4b9492896.tar.gz |
build: Port to meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development. This patch adds meson
support along autotools.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fbca9d8..acebd43 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: fedora:rawhide +image: fedora:latest variables: DEPENDENCIES: gcc @@ -18,27 +18,34 @@ variables: pkgconfig(systemd) pam-devel python3-dbusmock + meson + git + dbus-devel build_stable: before_script: - dnf upgrade -y --nogpgcheck fedora-release fedora-repos* - dnf update -y && dnf install -y $DEPENDENCIES + - getent group polkitd >/dev/null || groupadd -r polkitd + - getent passwd polkitd >/dev/null || useradd -r -g polkitd -d / -s /sbin/nologin -c "User for polkitd" polkitd + script: - - mkdir _build - - cd _build - - CPPFLAGS='-D_FORTIFY_SOURCE=2' ../autogen.sh - --disable-dependency-tracking - --enable-ansi - --enable-man-pages - --enable-test - --enable-libsystemd-login=yes - --enable-libelogind=no - - make - - make check - - make install + - meson setup + -D authfw=pam + -D examples=true + -D gtk_doc=true + -D introspection=true + -D man=true + -D session_tracking=libsystemd-login + -D tests=true + -D cpp_args="-D_FORTIFY_SOURCE=2" + builddir + - meson compile -C builddir + - meson test -C builddir + - meson install -C builddir artifacts: name: 'test logs' when: 'always' paths: - - '_build/test/*/*.log' + - 'builddir/meson-logs/*.txt' |