gst-integration-tests: medias: update git module to latest commit
[platform/upstream/gstreamer.git] / .gitlab-ci.yml
index e235934..70a1719 100644 (file)
@@ -63,6 +63,7 @@ variables:
     -Drtsp_server=enabled
     -Dvaapi=enabled
     -Dsharp=disabled
+    -Dgpl=enabled
 
   MESON_GST_WERROR: >
     -Dgstreamer:werror=true
@@ -108,13 +109,15 @@ default:
 trigger:
   image: alpine:latest
   stage: 'trigger'
+  variables:
+    GIT_STRATEGY: none
   script:
     - echo "Trigger job done, now running the pipeline."
   rules:
     # If the MR is assigned to the Merge bot, trigger the pipeline automatically
     - if: '$CI_MERGE_REQUEST_ASSIGNEES == "gstreamer-merge-bot"'
     # Alway run tests post merged
-    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+    - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
     # When the assignee isn't the merge bot, require an explicit action to trigger the pipeline
     # to avoid wasting CI resources
     - if: '$CI_MERGE_REQUEST_ASSIGNEES != "gstreamer-merge-bot"'
@@ -330,6 +333,13 @@ gst indent:
     when: "always"
     paths:
       - 'meson-logs/'
+  rules:
+    # If this matches, it means the pipeline is running against either the main
+    # or a stable branch, so make it manual
+    - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+      when: manual
+    - changes:
+        *modules_changes
 
 .build fedora x86_64:
   extends:
@@ -340,13 +350,6 @@ gst indent:
     - "fedora amd64 docker"
   variables:
     MESON_ARGS: *simple_build
-  rules:
-    # If this matches, it means the pipeline is running against either the main
-    # or a stable branch, so make it manual
-    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
-      when: manual
-    - changes:
-        *modules_changes
 
 build nodebug fedora x86_64:
   extends:
@@ -358,16 +361,6 @@ build nodebug fedora x86_64:
   variables:
     MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic ${MESON_BUILDTYPE_ARGS} ${MESON_GST_WERROR}"
 
-build static fedora x86_64:
-  extends: '.build fedora x86_64'
-  variables:
-    MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
-
-build static nodebug fedora x86_64:
-  extends: 'build nodebug fedora x86_64'
-  variables:
-    MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
-
 build clang fedora x86_64:
   extends: '.build fedora x86_64'
   variables:
@@ -395,7 +388,7 @@ build clang fedora x86_64:
   rules:
     # If this matches, it means the pipeline is running against either the main
     # or a stable branch, so make it manual
-    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+    - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
       when: manual
     - changes:
         *modules_changes
@@ -525,25 +518,14 @@ integration testsuites fedora:
     TEST_SUITE: "validate ges"
 
 # gstreamer-full:
-# introspection has been disabled as the static build does not support it.
-# See https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/162
-gstreamer-full:
-  extends: 'build static fedora x86_64'
-  stage: integrate
+gstreamer-full static build:
+  extends: '.build fedora x86_64'
+  stage: 'build'
   variables:
     MESON_ARGS: >
       --default-library=static
-      -Dintrospection=disabled
+      -Ddoc=disabled
       $MESON_GST_WERROR
-  rules:
-    # If this matches, it means the pipeline is running against either the main
-    # or a stable branch, so make it manual
-    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
-      when: manual
-    - changes:
-      - "*"
-      - scripts/*
-      - ci/**/*
 
   script:
   - *build
@@ -554,12 +536,14 @@ gstreamer-full:
     paths:
       - 'meson-logs/'
 
-gstreamer-full-minimal:
-  extends: 'build static fedora x86_64'
-  stage: integrate
+gstreamer-full-minimal static build:
+  extends: 'gstreamer-full static build'
+  stage: 'build'
   variables:
     MESON_ARGS: >
       --default-library=static
+      -Ddoc=disabled
+      -Dgstreamer:gst_debug=false
       -Dauto_features=disabled
       -Dgstreamer:check=enabled
       -Dtests=enabled
@@ -593,10 +577,8 @@ gstreamer-full-minimal:
 
 valgrind core:
   extends: '.valgrind fedora x86_64'
-  parallel: 2
   variables:
     TEST_SUITE: "check.gstreamer\\..*"
-    EXTRA_VALIDATE_ARGS: "--valgrind --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}"
   rules:
     - changes:
       - "*"
@@ -607,10 +589,8 @@ valgrind core:
 
 valgrind base:
   extends: '.valgrind fedora x86_64'
-  parallel: 4
   variables:
     TEST_SUITE: "check.gst-plugins-base\\..*"
-    EXTRA_VALIDATE_ARGS: "--valgrind --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}"
   rules:
     - changes:
       - "*"
@@ -693,7 +673,9 @@ valgrind ges:
     MESON_BUILDTYPE_ARGS: "-Ddoc=enabled"
     CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/"
   script:
+  # FIXME: should rebuild the image with newer versions!
   - pip3 install --upgrade hotdoc
+  - pip3 install --upgrade meson
   - *build
   - ./gst-env.py ninja -C build/ plugins_doc_caches
   - ./ci/scripts/check-documentation-diff.py
@@ -708,7 +690,7 @@ valgrind ges:
     - plugins-cache-diffs/
 
 #
-# This jobs runs in gsrtreamer namespace when after the merge into main branch.
+# This jobs runs in gstreamer namespace when after the merge into main branch.
 # The produced artifact is later used to automatically update the web page.
 #
 documentation:
@@ -730,7 +712,8 @@ build documentation:
   needs:
     - "trigger"
   rules:
-    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+    # Never run post merge, we have the `documentation` always running for that
+    - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
       when: never
     - changes:
       - .gitlab-ci.yml
@@ -762,7 +745,8 @@ cerbero trigger:
     - ci/gitlab/trigger_cerbero_pipeline.py
 
   rules:
-    - if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
+    # Never run post merge
+    - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
       when: never
     - changes:
       - .gitlab-ci.yml