X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=.gitlab-ci.yml;h=87572e1195b5045152fbfbf6e3cf69d14078d95c;hb=92de0e7c496bdd20fb83bd7a17a0ceb43952c67d;hp=bac16dc75912e88dbf7ac49b1e1480a3ce57e149;hpb=89540bd528ca3f6fccf72316ee9908bab93ec9ef;p=platform%2Fupstream%2Fgstreamer.git diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bac16dc..87572e1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,7 +25,7 @@ variables: ### FEDORA_TAG: '2021-10-05.0' INDENT_TAG: '2021-10-04.0' - WINDOWS_TAG: "2021-10-04.1" + WINDOWS_TAG: "2021-10-12.0" GST_UPSTREAM_REPO: 'gstreamer/gstreamer' FDO_UPSTREAM_REPO: 'gstreamer/gstreamer' @@ -63,6 +63,7 @@ variables: -Drtsp_server=enabled -Dvaapi=enabled -Dsharp=disabled + -Dgpl=enabled MESON_GST_WERROR: > -Dgstreamer:werror=true @@ -113,15 +114,13 @@ trigger: 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_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"' when: 'manual' allow_failure: false - # 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' .fedora image: variables: @@ -332,6 +331,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: @@ -342,9 +348,6 @@ gst indent: - "fedora amd64 docker" variables: MESON_ARGS: *simple_build - rules: - - changes: - *modules_changes build nodebug fedora x86_64: extends: @@ -356,16 +359,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: @@ -391,6 +384,10 @@ build clang fedora x86_64: -Dgst-plugins-base:pango=enabled -Dgst-plugins-good:cairo=enabled 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 before_script: @@ -432,26 +429,17 @@ build msys2 : # https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6 - $ErrorActionPreference = "Stop" - # For some reason docker build hangs if this is included in the image, needs more troubleshooting - - $env:PATH += ';C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\msys64\mingw32\bin' - # Copied from https://github.com/msys2/setup-msys2/blob/master/main.js#L98 - - C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2 && pacman-key --refresh-keys || true" - - C:\msys64\usr\bin\bash -c "sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf" - - echo "Updating MSYS2" - - C:\msys64\usr\bin\bash -c "pacman -Syuu --noconfirm || echo Update failed, ignoring" - - echo "Killing all MSYS2 processes" - - taskkill /F /FI "MODULES eq msys-2.0.dll" - - echo "Completing MSYS2 update" - - C:\msys64\usr\bin\bash -c "pacman -Suu --noconfirm" - - echo "Installing needed MSYS2 packages" - - C:\msys64\usr\bin\bash -c "pacman -Sy --noconfirm --needed mingw-w64-x86_64-toolchain ninja" - + # Configure MSYS2 to use the UCRT64 environment, start in the same directory + # and inherit PATH + - $env:MSYSTEM = "UCRT64" + - $env:CHERE_INVOKING = "1" + - $env:MSYS2_PATH_TYPE = "inherit" # For some reason, options are separated by newline instead of space, so we # have to replace them first. - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ") # Replace forward slashes with backwards so bash doesn't complain - $env:_PROJECT_DIR = $env:CI_PROJECT_DIR.replace('\','/') - - C:\msys64\usr\bin\bash -c "meson build $env:MESON_ARGS && ninja -C build" + - C:\msys64\usr\bin\bash -lc "meson build $env:MESON_ARGS && ninja -C build" # ---- Tests ----- # @@ -483,6 +471,7 @@ build msys2 : - > ./gst-env.py gst-validate-launcher ${TEST_SUITE} + --check-bugs --dump-on-failure --mute --shuffle @@ -523,25 +512,18 @@ integration testsuites fedora: extends: '.test fedora x86_64' parallel: 4 variables: - EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX} --sync" + EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX} --sync" 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: - - changes: - - "*" - - scripts/* - - ci/**/* script: - *build @@ -552,12 +534,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 @@ -591,10 +575,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: - "*" @@ -605,10 +587,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: - "*" @@ -691,7 +671,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 @@ -706,7 +688,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: @@ -728,6 +710,9 @@ build documentation: needs: - "trigger" rules: + # 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 - ci/gitlab/freedesktop_doc_importer.sh @@ -758,6 +743,9 @@ cerbero trigger: - ci/gitlab/trigger_cerbero_pipeline.py rules: + # Never run post merge + - if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH' + when: never - changes: - .gitlab-ci.yml - ci/gitlab/trigger_cerbero_pipeline.py