summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-10-15 13:17:22 +0200
committerThomas Haller <thaller@redhat.com>2018-10-22 12:22:01 +0200
commitd265420d57ff6363d2ed9a9de12661e400b95dfb (patch)
tree24c4f158fc3ba4f190cb32e5c3f8b6dbb45c1103
parentaf7f4fa12f3fd66bfbffe034315bbe71b9cfc021 (diff)
downloadNetworkManager-th/gitlab-ci.tar.gz
gitlab: add .gitlab-ci.yml for gitlab CIth/gitlab-ci
See-also: https://docs.gitlab.com/ee/ci/yaml/
-rw-r--r--.gitlab-ci.yml91
1 files changed, 91 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000..33c95bd957
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,91 @@
+# 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.freedesktop.org/NetworkManager/NetworkManager/-/ci/lint
+
+stages:
+ - test
+ - deploy
+
+.fedora_install: &fedora_install
+ before_script:
+ - NM_INSTALL="dnf install -y" ./contrib/fedora/REQUIRED_PACKAGES
+
+checkpatch:
+ image: fedora:28
+ stage: test
+ script:
+ - dnf install -y git
+ - contrib/scripts/checkpatch-feature-branch.sh 2>&1 | tee checkpatch-out.txt
+ allow_failure: true
+ artifacts:
+ when: on_failure
+ paths:
+ - checkpatch-out.txt
+
+f28_build_default:
+ <<: *fedora_install
+ image: fedora:28
+ stage: test
+ script:
+ - dnf install -y glibc-langpack-pl
+ - locale -a
+ - NOCONFIGURE=1 ./autogen.sh
+ - mkdir ./build
+ - cd ./build
+ - ../configure
+ --prefix="$PWD/INST"
+ --enable-gtk-doc=yes
+ --with-systemd-logind=yes
+ --enable-more-warnings=error
+ --enable-tests=yes
+ --with-crypto=gnutls
+ --with-libnm-glib=yes
+ --with-iwd=yes
+ --with-ofono=yes
+ --enable-teamdctl=yes
+ --with-dhcpcanon=yes
+ --with-dhcpcd=yes
+ --with-dhclient=yes
+ --with-netconfig=/bin/nowhere/netconfig
+ --with-resolvconf=/bin/nowhere/resolvconf
+ --enable-ifcfg-rh=yes
+ --enable-config-plugin-ibft=yes
+ --enable-ifupdown=yes
+ - make -j 6
+ - make install
+ - NM_TEST_CLIENT_CHECK_L10N=1 make -j 6 -k check
+ - cd ..
+ - mv build/INST/share/gtk-doc/html docs-html
+ artifacts:
+ expire_in: 1 day
+ paths:
+ - docs-html
+
+f28_rpm_autotools_dbg:
+ <<: *fedora_install
+ image: fedora:28
+ stage: test
+ script:
+ - ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w test
+
+f28_rpm_meson_dbg:
+ <<: *fedora_install
+ image: fedora:28
+ stage: test
+ script:
+ - ./contrib/fedora/rpm/build_clean.sh -g -w crypto_gnutls -w debug -w iwd -w meson -w test
+
+pages:
+ stage: deploy
+ dependencies:
+ - f28_build_default
+ script:
+ - mv docs-html public
+ artifacts:
+ expire_in: 20 days
+ paths:
+ - public
+ only:
+ - master