[network-manager-sstp] First attempt at setting up a CI build for network-manager-sstp



commit 706babcd928e5985bab9066ecd4677d6bf12721e
Author: Eivind Næss <eivnaes yahoo com>
Date:   Tue Jun 8 14:12:24 2021 -0700

    First attempt at setting up a CI build for network-manager-sstp
    
    Cloing from NetworkManager-pptp project.

 .gitlab-ci.yml | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..31b3faa
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,68 @@
+# 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/network-manager-sstp/-/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-sstp-*.tar.xz
+    - cd NetworkManager-sstp-*/
+    - ./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]