[NetworkManager-pptp/lr/ci: 5/5] build: add GNOME GitLab CI configuration
- From: Francesco Giudici <fgiudici src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [NetworkManager-pptp/lr/ci: 5/5] build: add GNOME GitLab CI configuration
- Date: Thu, 7 Jun 2018 10:51:02 +0000 (UTC)
commit 5945a6a141da44461908951180bd5d202644e272
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Mon May 28 17:06:46 2018 +0200
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.
.gitlab-ci.yml | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b377e50
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,67 @@
+# 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-pptp/-/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
+ ppp-devel
+
+# 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-pptp-*.tar.xz
+ - cd NetworkManager-pptp-*/
+ - ./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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]