[gimp] gitlab-ci: add support for flatpak and Windows installer jobs in MR…



commit 20fa78dcfb47a3f2c614de3352e8aba7c5ca626d
Author: Jehan <jehan girinstud io>
Date:   Fri May 28 13:35:40 2021 +0200

    gitlab-ci: add support for flatpak and Windows installer jobs in MR…
    
    … based on set labels.
    
    If the label "5. Windows Installer" is set, the MR pipeline should
    trigger the Windows installer pipeline as well.
    
    If the label "5. Flatpak package" is set, it should generate the flatpak
    (not publish it obviously, yet it can be downloaded and installed
    manually).
    
    This will allow us to easily test MRs and allow people to test our code
    before we merge it to the main branches.

 .gitlab-ci.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d6a6aad330..868b07f4ce 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -250,6 +250,8 @@ deps-win64-native:
     # Custom builds though web GUI, API or schedules.
     - if: '$GIMP_CI_MSYS2_WIN64 != null'
     - if: '$GIMP_CI_WIN_INSTALLER != null'
+    # Merge requests with appropriate label.
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /.*5. Windows Installer.*/'
   stage: dependencies
   variables:
     MSYSTEM: "MINGW64"
@@ -275,6 +277,8 @@ gimp-win64-native:
     # Custom builds though web GUI, API or schedules.
     - if: '$GIMP_CI_MSYS2_WIN64 != null'
     - if: '$GIMP_CI_WIN_INSTALLER != null'
+    # Merge requests with appropriate label.
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /.*5. Windows Installer.*/'
   stage: gimp
   variables:
     MSYSTEM: "MINGW64"
@@ -302,6 +306,8 @@ packaging-win64-native:
     - if: '$CI_COMMIT_TAG != null'
     # Custom builds though web GUI, API or schedules.
     - if: '$GIMP_CI_WIN_INSTALLER != null'
+    # Merge requests with appropriate label.
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /.*5. Windows Installer.*/'
   stage: packaging
   variables:
     MSYSTEM: "MINGW64"
@@ -331,6 +337,8 @@ deps-win32-native:
     # Custom builds though web GUI, API or schedules.
     - if: '$GIMP_CI_MSYS2_WIN32 != null'
     - if: '$GIMP_CI_WIN_INSTALLER != null'
+    # Merge requests with appropriate label.
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /.*5. Windows Installer.*/'
   stage: dependencies
   variables:
     MSYSTEM: "MINGW32"
@@ -355,6 +363,8 @@ gimp-win32-native:
     # Custom builds though web GUI, API or schedules.
     - if: '$GIMP_CI_MSYS2_WIN32 != null'
     - if: '$GIMP_CI_WIN_INSTALLER != null'
+    # Merge requests with appropriate label.
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /.*5. Windows Installer.*/'
   stage: gimp
   variables:
     MSYSTEM: "MINGW32"
@@ -381,6 +391,8 @@ packaging-win32-native:
     - if: '$CI_COMMIT_TAG != null'
     # Custom builds though web GUI, API or schedules.
     - if: '$GIMP_CI_WIN_INSTALLER != null'
+    # Merge requests with appropriate label.
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /.*5. Windows Installer.*/'
   stage: packaging
   variables:
     MSYSTEM: "MINGW32"
@@ -555,6 +567,8 @@ flatpak:
   rules:
     # Custom builds though web GUI, API or schedules.
     - if: '$GIMP_CI_FLATPAK != null'
+    # Merge requests with appropriate label.
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /.*5. Flatpak package.*/'
   variables:
     GIT_SUBMODULE_STRATEGY: normal
 
@@ -612,6 +626,8 @@ win-installer-nightly:
     - if: '$CI_COMMIT_TAG != null'
     # Custom builds though web GUI, API or schedules.
     - if: '$GIMP_CI_WIN_INSTALLER != null'
+    # Merge requests with appropriate label.
+    - if: '$CI_MERGE_REQUEST_LABELS =~ /.*5. Windows Installer.*/'
   variables:
     CHERE_INVOKING: "yes"
   tags:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]