Commit da535bc1 authored by Lubomir Rintel's avatar Lubomir Rintel

build: add GNOME GitLab CI configuration

The pipeline begins with "build" stage doing a distcheck on Fedora 28
(which is still known to ship libnm-glib) and outputting a tarball
artifact.

The output is then used in the "test" stage.

In future, builds on some older platforms, CentOS and Ubuntu and clang
builds would be nice. Not implemented at this point, but it should be
straightforward enough.

Maybe a build with a Git snapshot of NetworkManager and/or
network-manager-applet would be useful at some point, but that's not
implemented either.
parent 3012b78b
Pipeline #14784 passed with stages
in 10 minutes and 55 seconds
# Quick syntax check:
# python -c 'import sys, yaml; yaml.dump (yaml.load (sys.stdin), sys.stdout)' <.gitlab-ci.yml
# If things don't seem to work, this can help:
# https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/-/ci/lint
.fedora_deps: &fedora_deps
before_script:
- dnf -y install
file
findutils
gcc
gettext-devel
glib2-devel
gtk3-devel
intltool
libtool
libsecret-devel
libnma-devel
NetworkManager-libnm-devel
pkgconfig
# Disable fetching Git, run after the tarball is rolled
.dist: &dist
stage: test
dependencies:
- fedora28_dist
variables:
GIT_STRATEGY: none
.fedora_from_dist: &fedora_from_dist
<<: *fedora_deps
<<: *dist
script:
- dnf -y install make
- tar xJf NetworkManager-openvpn-*.tar.xz
- cd NetworkManager-openvpn-*/
- ./configure
--disable-silent-rules
--without-libnm-glib
- make -j
- make -j check
- make -j install
- make -j uninstall
# Roll the distribution tarball
fedora28_dist:
<<: *fedora_deps
image: fedora:28
stage: build
script:
- dnf -y install
/usr/bin/autopoint
autoconf automake make
NetworkManager-devel
NetworkManager-glib-devel
libnm-gtk-devel
- sh autogen.sh
- make -j distcheck
artifacts:
paths:
- "*.xz"
fedora_from_dist:
<<: *fedora_from_dist
image: fedora:latest
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