summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-02-21 15:03:25 +0000
committerJan Rybar <jrybar@redhat.com>2020-02-21 15:03:25 +0000
commitcd1dc6450373704a1c9839ff6ad0a0336d27b858 (patch)
tree228b94feac518be8ee9f863573533a25aa703502 /.gitlab-ci.yml
parent721e0a5ade4ae788d377c6aecd9f6fd860dc01ee (diff)
downloadpolkit-cd1dc6450373704a1c9839ff6ad0a0336d27b858.tar.gz
ci: Add a CI
Just compiles and installs polkit
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..6689607
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,44 @@
+image: fedora:rawhide
+
+variables:
+ DEPENDENCIES: gcc
+ gcc-c++
+ libtool
+ autoconf
+ automake
+ gtk-doc
+ intltool
+ gobject-introspection-devel
+ make
+ libxslt
+ pkgconfig(gio-2.0)
+ pkgconfig(mozjs-60)
+ expat-devel
+ pkgconfig(libsystemd)
+ pkgconfig(systemd)
+ pam-devel
+ python3-dbusmock
+
+build_stable:
+ before_script:
+ - dnf upgrade -y --nogpgcheck fedora-release fedora-repos*
+ - dnf update -y && dnf install -y $DEPENDENCIES
+ 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
+ artifacts:
+ name: 'test logs'
+ when: 'always'
+ paths:
+ - '_build/test/*/*.log'
+