[gnome-control-center] ci: Introduce CI
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] ci: Introduce CI
- Date: Thu, 1 Mar 2018 18:35:49 +0000 (UTC)
commit 0a2faf014c91c697c578bcbb2bb8d54b8da1b098
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Mar 1 13:47:10 2018 -0300
ci: Introduce CI
.gitlab-ci.yaml | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
---
diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml
new file mode 100644
index 000000000..581b76eb9
--- /dev/null
+++ b/.gitlab-ci.yaml
@@ -0,0 +1,64 @@
+image: fedora:rawhide
+stages:
+ - build
+ - test
+ - deploy
+
+variables:
+ DEPENDENCIES: gcc meson ninja-build gettext gtk-doc glib2-devel
+ gtk3-devel gsettings-desktop-schemas-devel git
+ gnome-online-accounts-devel gnome-bluetooth-devel
+ gnome-desktop3-devel gnome-settings-daemon-devel
+ switcheroo-control-devel NetworkManager-devel
+ colord-devel libgtop2-devel libgudev-devel
+ grilo-devel gnome-color-manager-devel upower-devel
+ accountsservice-devel smbclient-devel clutter-devel
+ clutter-gtk-devel libxml2-devel pulseaudio-devel
+ libXi-devel libX11-devel
+
+before_script:
+ - dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES
+
+
+##
+# Stage: Build
+#
+# Checks if GNOME Control Center is properly building and installing. This is the
+# most important stage of the CI, and no MR should ever be merged if it breaks
+# any of them.
+##
+build:
+ stage: build
+ script:
+ - meson . _build
+ - ninja -C _build
+ - ninja -C _build install
+
+
+##
+# Stage: Test
+#
+# Runs the unit tests.
+##
+test:
+ stage: test
+ script:
+ - meson . _build
+ - ninja -C _build
+ - meson test -C _build --verbose --no-stdsplit
+
+
+##
+# Stage: Deploy
+#
+# Checks if the released version is in a good shape.
+##
+deploy:
+ stage: deploy
+ script:
+ - meson . _build
+ - ninja -C _build
+ - meson test -C _build
+ - ninja dist -C _build
+ only:
+ - tags
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]