Port from only/except to rules

Rules is a new feature that replaces only/except and allow for finer grain
control on the workflow. With rules, we gain finer grain to pipeline and merge
request pipelines.
This commit is contained in:
Nicolas Dufresne 2020-03-04 09:58:38 -05:00
parent b0eaeb69f3
commit e12ea82a23
2 changed files with 88 additions and 292 deletions

View File

@ -114,7 +114,10 @@ android docker:
.build local: .build local:
extends: '.build' extends: '.build'
when: 'manual' rules:
- if: '$CI_COMMIT_REF_NAME == "master" && $CI_PROJECT_PATH == "gstreamer/gst-ci"'
when: 'never'
- when: 'manual'
needs: needs:
- 'manifest' - 'manifest'
@ -129,51 +132,28 @@ build fedora x86_64 local:
paths: paths:
- "manifest.xml" - "manifest.xml"
- "gst-build/" - "gst-build/"
except:
refs:
- "master@gstreamer/gst-ci"
build cerbero fedora x86_64 local: build cerbero fedora x86_64 local:
extends: '.cerbero fedora x86_64' extends: '.cerbero fedora x86_64'
image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest" image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
when: 'manual'
except:
refs:
- "master@gstreamer/gst-ci"
build cerbero cross-android universal local: build cerbero cross-android universal local:
extends: '.cerbero cross-android universal' extends: '.cerbero cross-android universal'
image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest" image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
when: 'manual'
except:
refs:
- "master@gstreamer/gst-ci"
build cerbero cross win32 local: build cerbero cross win32 local:
extends: '.cerbero cross win32' extends: '.cerbero cross win32'
image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest" image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
when: 'manual'
except:
refs:
- "master@gstreamer/gst-ci"
build cerbero cross win64 local: build cerbero cross win64 local:
extends: '.cerbero cross win64' extends: '.cerbero cross win64'
image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest" image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
when: 'manual'
except:
refs:
- "master@gstreamer/gst-ci"
.test fedora x86_64 local: .test fedora x86_64 local:
image: '${CI_REGISTRY_IMAGE}/amd64/fedora:latest' image: '${CI_REGISTRY_IMAGE}/amd64/fedora:latest'
extends: '.test' extends: '.test'
dependencies: dependencies:
- 'build fedora x86_64 local' - 'build fedora x86_64 local'
when: 'manual'
except:
refs:
- "master@gstreamer/gst-ci"
check fedora local: check fedora local:
extends: '.test fedora x86_64 local' extends: '.test fedora x86_64 local'
@ -185,10 +165,6 @@ cross-android universal examples local:
image: "${CI_REGISTRY_IMAGE}/amd64/android:latest" image: "${CI_REGISTRY_IMAGE}/amd64/android:latest"
dependencies: dependencies:
- "build cerbero cross-android universal local" - "build cerbero cross-android universal local"
when: 'manual'
except:
refs:
- "master@gstreamer/gst-ci"
integration testsuites fedora local: integration testsuites fedora local:
extends: '.test fedora x86_64 local' extends: '.test fedora x86_64 local'
@ -197,4 +173,3 @@ integration testsuites fedora local:
variables: variables:
EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures" EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures"
TEST_SUITE: "validate ges" TEST_SUITE: "validate ges"

View File

@ -35,7 +35,22 @@ variables:
--variants werror --variants werror
--timestamps --timestamps
.global_retry_policy: #
# Global CI policy
#
# This can be used to configure global behaviour our our jobs. It also
# supports some variable to affect the job when:
#
# EXCEPT_PROJECT_REGEX: Will mark to never if that regex match
# ONLY_PROJECT_REGEX: Will mark to never if that regex do not match
#
.global_ci_policy:
rules:
- if: '$EXCEPT_PROJECT_REGEX && $CI_PROJECT_NAME =~ $EXCEPT_PROJECT_REGEX'
when: 'never'
- if: '$ONLY_PROJECT_REGEX && $CI_PROJECT_NAME !~ $ONLY_PROJECT_REGEX'
when: 'never'
- when: 'on_success'
retry: retry:
max: 2 max: 2
when: when:
@ -47,7 +62,7 @@ variables:
manifest: manifest:
image: $MANIFEST_IMAGE image: $MANIFEST_IMAGE
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
stage: 'preparation' stage: 'preparation'
script: script:
- cd /gst-ci - cd /gst-ci
@ -62,10 +77,11 @@ manifest:
gst indent: gst indent:
image: $INDENT_IMAGE image: $INDENT_IMAGE
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
stage: 'preparation' stage: 'preparation'
variables: variables:
GIT_STRATEGY: 'fetch' GIT_STRATEGY: 'fetch'
EXCEPT_REGEX: '/^(gstreamer-sharp|gst-integration-testsuites|cerbero|gst-docs)$/'
script: script:
# man indent. grep RETURN VALUE, grab a beer on my behalf... # man indent. grep RETURN VALUE, grab a beer on my behalf...
- indent --version || true - indent --version || true
@ -80,22 +96,13 @@ gst indent:
echo 'style diverges, please run gst-indent first' echo 'style diverges, please run gst-indent first'
exit 1 exit 1
fi fi
except:
variables:
# No point on trying to format C files in those repositories
- $CI_PROJECT_NAME == "gstreamer-sharp"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-docs"
.build: .build:
stage: 'build' stage: 'build'
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
needs: needs:
- "manifest" - "manifest"
dependencies:
- "manifest"
# Taking into account the slowest shared runner + time needed to upload the binaries to artifacts # Taking into account the slowest shared runner + time needed to upload the binaries to artifacts
# Also need to take into account I/O of pulling docker images and uploading artifacts # Also need to take into account I/O of pulling docker images and uploading artifacts
timeout: '45min' timeout: '45min'
@ -109,6 +116,7 @@ gst indent:
CARGO_HOME: "/cache/gstreamer/cargo" CARGO_HOME: "/cache/gstreamer/cargo"
MESON_ARGS: "${DEFAULT_MESON_ARGS} ${MESON_BUILDTYPE_ARGS} --werror" MESON_ARGS: "${DEFAULT_MESON_ARGS} ${MESON_BUILDTYPE_ARGS} --werror"
EXCEPT_PROJECT_REGEX: '/^(cerbero)$/'
script: script:
- ccache --show-stats - ccache --show-stats
@ -129,9 +137,6 @@ gst indent:
# Clean the .git repos since we won't need them anymore # Clean the .git repos since we won't need them anymore
- rm -rf subprojects/*/.git/ - rm -rf subprojects/*/.git/
- rm -rf build/subprojects/*/.git/ - rm -rf build/subprojects/*/.git/
except:
variables:
- $CI_PROJECT_NAME == "cerbero"
build fedora x86_64: build fedora x86_64:
extends: '.build' extends: '.build'
@ -139,16 +144,13 @@ build fedora x86_64:
image: $FEDORA_IMAGE image: $FEDORA_IMAGE
variables: variables:
MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Domx=enabled -Dgst-omx:target=generic -Ddoc=enabled -Drs=disabled ${MESON_BUILDTYPE_ARGS} --werror" MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Domx=enabled -Dgst-omx:target=generic -Ddoc=enabled -Drs=disabled ${MESON_BUILDTYPE_ARGS} --werror"
EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-plugins-rs)$/'
artifacts: artifacts:
expire_in: '5 days' expire_in: '5 days'
when: always when: always
paths: paths:
- "manifest.xml" - "manifest.xml"
- "gst-build/" - "gst-build/"
except:
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-plugins-rs"
build nodebug fedora x86_64: build nodebug fedora x86_64:
extends: '.build' extends: '.build'
@ -156,51 +158,31 @@ build nodebug fedora x86_64:
image: $FEDORA_IMAGE image: $FEDORA_IMAGE
variables: variables:
MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic -Drs=disabled ${MESON_BUILDTYPE_ARGS} --werror" MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic -Drs=disabled ${MESON_BUILDTYPE_ARGS} --werror"
except: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
build static fedora x86_64: build static fedora x86_64:
extends: 'build fedora x86_64' extends: 'build fedora x86_64'
variables: variables:
MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled" MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
except: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
build static nodebug fedora x86_64: build static nodebug fedora x86_64:
extends: 'build nodebug fedora x86_64' extends: 'build nodebug fedora x86_64'
variables: variables:
MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled" MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
except: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
build clang fedora x86_64: build clang fedora x86_64:
extends: 'build fedora x86_64' extends: 'build fedora x86_64'
variables: variables:
CC: 'ccache clang' CC: 'ccache clang'
CXX: 'ccache clang++' CXX: 'ccache clang++'
except: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
.test: .test:
stage: 'test' stage: 'test'
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
variables: variables:
# Disable colored output to avoid weird rendering issues # Disable colored output to avoid weird rendering issues
GST_DEBUG_NO_COLOR: "true" GST_DEBUG_NO_COLOR: "true"
@ -208,6 +190,7 @@ build clang fedora x86_64:
GST_VALIDATE_LAUNCHER_FORCE_COLORS: "true" GST_VALIDATE_LAUNCHER_FORCE_COLORS: "true"
TIMEOUT_FACTOR: "2" TIMEOUT_FACTOR: "2"
CARGO_HOME: "/cache/gstreamer/cargo" CARGO_HOME: "/cache/gstreamer/cargo"
EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-examples|gst-docs)$/'
script: script:
- cd gst-build/ - cd gst-build/
- echo "-> Running ${TEST_SUITE}" - echo "-> Running ${TEST_SUITE}"
@ -233,12 +216,6 @@ build clang fedora x86_64:
reports: reports:
junit: junit:
- "validate-logs/*.xml" - "validate-logs/*.xml"
# We disable the .build above, which this job usually depends upon for cerbero
except:
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-examples"
- $CI_PROJECT_NAME == "gst-docs"
.test fedora x86_64: .test fedora x86_64:
image: $FEDORA_IMAGE image: $FEDORA_IMAGE
@ -246,21 +223,12 @@ build clang fedora x86_64:
tags: ['gstreamer'] tags: ['gstreamer']
needs: needs:
- 'build fedora x86_64' - 'build fedora x86_64'
dependencies:
- build fedora x86_64
check fedora: check fedora:
extends: '.test fedora x86_64' extends: '.test fedora x86_64'
variables: variables:
TEST_SUITE: "check.gst*" TEST_SUITE: "check.gst*"
except: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-docs|gst-examples|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
variables:
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-examples"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-plugins-rs"
integration testsuites fedora: integration testsuites fedora:
extends: '.test fedora x86_64' extends: '.test fedora x86_64'
@ -268,12 +236,7 @@ integration testsuites fedora:
variables: variables:
EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}" EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}"
TEST_SUITE: "validate ges" TEST_SUITE: "validate ges"
except: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-docs|gst-omx|gst-plugins-rs)$/'
variables:
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-plugins-rs"
gstreamer-full: gstreamer-full:
extends: 'build static fedora x86_64' extends: 'build static fedora x86_64'
@ -303,60 +266,45 @@ gstreamer-full:
stage: 'test' stage: 'test'
variables: variables:
EXTRA_VALIDATE_ARGS: "--valgrind" EXTRA_VALIDATE_ARGS: "--valgrind"
# Some suppression files are missing a newline at the end which messes things # Some suppression files are missing a newline at the end which messes things
# up when concatenating them. awk will add missing newlines (unlike cat) # up when concatenating them. awk will add missing newlines (unlike cat)
except: EXCEPT_PROJECT_REGEX: '/^(gstreamer|gst-integration-testsuites)$/'
variables:
- $CI_PROJECT_NAMESPACE == 'gstreamer'
- $CI_PROJECT_NAME == "gst-integration-testsuites"
valgrind core: valgrind core:
extends: '.valgrind fedora x86_64' extends: '.valgrind fedora x86_64'
variables: variables:
TEST_SUITE: "check.gstreamer\\..*" TEST_SUITE: "check.gstreamer\\..*"
only: ONLY_PROJECT_REGEX: '/^(gstreamer|gst-ci)$/'
variables:
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-ci)$/
valgrind base: valgrind base:
extends: '.valgrind fedora x86_64' extends: '.valgrind fedora x86_64'
variables: variables:
TEST_SUITE: "check.gst-plugins-base\\..*" TEST_SUITE: "check.gst-plugins-base\\..*"
only: ONLY_PROJECT_REGEX: '/^(gstreamer|gst-plugins-base|gst-ci)$/'
variables:
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-ci)$/
valgrind good: valgrind good:
extends: '.valgrind fedora x86_64' extends: '.valgrind fedora x86_64'
variables: variables:
TEST_SUITE: "check.gst-plugins-good\\..*" TEST_SUITE: "check.gst-plugins-good\\..*"
only: ONLY_PROJECT_REGEX: '/^(gstreamer|gst-plugins-base|gst-plugins-good|gst-ci)$/'
variables:
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-ci)$/
valgrind ugly: valgrind ugly:
extends: '.valgrind fedora x86_64' extends: '.valgrind fedora x86_64'
variables: variables:
TEST_SUITE: "check.gst-plugins-ugly\\..*" TEST_SUITE: "check.gst-plugins-ugly\\..*"
only: ONLY_PROJECT_REGEX: '/^(gstreamer|gst-plugins-base|gst-plugins-ugly|gst-ci)$/'
variables:
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-ugly|gst-ci)$/
valgrind bad: valgrind bad:
extends: '.valgrind fedora x86_64' extends: '.valgrind fedora x86_64'
variables: variables:
TEST_SUITE: "check.gst-plugins-bad\\..*" TEST_SUITE: "check.gst-plugins-bad\\..*"
only: ONLY_PROJECT_REGEX: '/^(gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-bad|gst-ci)$/'
variables:
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-bad|gst-ci)$/
valgrind ges: valgrind ges:
extends: '.valgrind fedora x86_64' extends: '.valgrind fedora x86_64'
variables: variables:
TEST_SUITE: "check.gst-editing-services\\..*" TEST_SUITE: "check.gst-editing-services\\..*"
only: ONLY_PROJECT_REGEX: '/^(gstreamer|gst-plugins-base|gst-plugins-good|gst-editing-services|gst-ci|gst-devtools)$/'
variables:
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-editing-services|gst-ci|gst-devtools)$/
# Template for Cerbero GStreamer Build # Template for Cerbero GStreamer Build
# #
@ -369,11 +317,9 @@ valgrind ges:
stage: "build" stage: "build"
image: $CERBERO_IMAGE image: $CERBERO_IMAGE
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
needs: needs:
- "manifest" - "manifest"
dependencies:
- "manifest"
# Ensure that the runners it will be executed on # Ensure that the runners it will be executed on
# will have plenty of space for the cache # will have plenty of space for the cache
tags: ['gstreamer'] tags: ['gstreamer']
@ -446,12 +392,10 @@ valgrind ges:
.build windows: .build windows:
image: $WINDOWS_IMAGE image: $WINDOWS_IMAGE
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
stage: 'build' stage: 'build'
needs: needs:
- 'manifest' - 'manifest'
dependencies:
- 'manifest'
tags: tags:
- 'docker' - 'docker'
- 'windows' - 'windows'
@ -464,6 +408,7 @@ valgrind ges:
-Dlibav=disabled -Dlibav=disabled
-Dvaapi=disabled -Dvaapi=disabled
-Ddevtools=disabled -Ddevtools=disabled
EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs|gstreamer-vaapi)$/'
script: script:
# Sometimes there's seems to be an existing gst-build clone that comes either from the ether or # Sometimes there's seems to be an existing gst-build clone that comes either from the ether or
# from a previous job due to some gitlab bug or implicit behavior? # from a previous job due to some gitlab bug or implicit behavior?
@ -497,14 +442,6 @@ valgrind ges:
# Gitlab Runner issue: https://gitlab.com/gitlab-org/gitlab-runner/issues/4291 # Gitlab Runner issue: https://gitlab.com/gitlab-org/gitlab-runner/issues/4291
# Blocked upgrade issue: https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/6#note_192780 # Blocked upgrade issue: https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/6#note_192780
after_script: after_script:
except:
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
build vs2017 amd64: build vs2017 amd64:
extends: '.build windows' extends: '.build windows'
@ -566,6 +503,8 @@ build msys2 :
# with the associated build-tools. # with the associated build-tools.
.cerbero deps: .cerbero deps:
extends: .cerbero extends: .cerbero
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
stage: "pre-build" stage: "pre-build"
script: script:
- $CERBERO $CERBERO_ARGS show-config - $CERBERO $CERBERO_ARGS show-config
@ -583,9 +522,6 @@ build msys2 :
- tar -C ${CERBERO_HOME} --exclude=var/tmp -czf $CERBERO_DEPS - tar -C ${CERBERO_HOME} --exclude=var/tmp -czf $CERBERO_DEPS
build-tools build-tools.cache build-tools build-tools.cache
dist/${ARCH} ${ARCH}.cache dist/${ARCH} ${ARCH}.cache
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
artifacts: artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}" name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
expire_in: '10 days' expire_in: '10 days'
@ -612,26 +548,15 @@ cerbero deps fedora x86_64:
cerbero fedora x86_64: cerbero fedora x86_64:
extends: '.cerbero fedora x86_64' extends: '.cerbero fedora x86_64'
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
needs: needs:
- "cerbero deps fedora x86_64" - "cerbero deps fedora x86_64"
- "manifest"
dependencies:
- "cerbero deps fedora x86_64"
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
build cerbero fedora x86_64: build cerbero fedora x86_64:
extends: '.cerbero fedora x86_64' extends: '.cerbero fedora x86_64'
except: variables:
variables: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
# #
# Cerbero Android Universal build # Cerbero Android Universal build
@ -657,25 +582,15 @@ cerbero deps cross-android universal:
cerbero cross-android universal: cerbero cross-android universal:
extends: '.cerbero cross-android universal' extends: '.cerbero cross-android universal'
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
needs: needs:
- "cerbero deps cross-android universal" - "cerbero deps cross-android universal"
- "manifest"
dependencies:
- "cerbero deps cross-android universal"
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
build cerbero cross-android universal: build cerbero cross-android universal:
extends: '.cerbero cross-android universal' extends: '.cerbero cross-android universal'
except: variables:
variables: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
# #
# Cerbero Cross Windows builds # Cerbero Cross Windows builds
@ -695,26 +610,15 @@ cerbero deps cross-windows x86:
cerbero cross win32: cerbero cross win32:
extends: '.cerbero cross win32' extends: '.cerbero cross win32'
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
needs: needs:
- "cerbero deps cross-windows x86" - "cerbero deps cross-windows x86"
- "manifest"
dependencies:
- "cerbero deps cross-windows x86"
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
build cerbero cross win32: build cerbero cross win32:
extends: '.cerbero cross win32' extends: '.cerbero cross win32'
except: variables:
variables: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
cerbero deps cross-windows x86_64: cerbero deps cross-windows x86_64:
extends: '.cerbero deps' extends: '.cerbero deps'
@ -731,26 +635,15 @@ cerbero deps cross-windows x86_64:
cerbero cross win64: cerbero cross win64:
extends: '.cerbero cross win64' extends: '.cerbero cross win64'
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
needs: needs:
- "cerbero deps cross-windows x86_64" - "cerbero deps cross-windows x86_64"
- "manifest"
dependencies:
- "cerbero deps cross-windows x86_64"
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
build cerbero cross win64: build cerbero cross win64:
extends: '.cerbero cross win64' extends: '.cerbero cross win64'
except: variables:
variables: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-plugins-rs"
# #
# Build an Android App using the android binaries # Build an Android App using the android binaries
@ -758,7 +651,7 @@ build cerbero cross win64:
.cross-android universal examples: .cross-android universal examples:
image: $ANDROID_IMAGE image: $ANDROID_IMAGE
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
stage: 'integrate' stage: 'integrate'
variables: variables:
EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
@ -798,30 +691,17 @@ build cerbero cross win64:
cross-android universal examples: cross-android universal examples:
extends: ".cross-android universal examples" extends: ".cross-android universal examples"
variables:
EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
needs: needs:
- "build cerbero cross-android universal" - "build cerbero cross-android universal"
- "manifest"
dependencies:
- "build cerbero cross-android universal"
except:
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-plugins-rs"
cerbero cross-android universal examples: cerbero cross-android universal examples:
extends: ".cross-android universal examples" extends: ".cross-android universal examples"
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
needs: needs:
- "cerbero cross-android universal" - "cerbero cross-android universal"
- "manifest"
dependencies:
- "cerbero cross-android universal"
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
# #
# Cerbero macOS X86_64 build # Cerbero macOS X86_64 build
@ -860,27 +740,15 @@ cerbero deps macos x86_64:
cerbero macos x86_64: cerbero macos x86_64:
extends: '.cerbero macos x86_64' extends: '.cerbero macos x86_64'
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
needs: needs:
- "cerbero deps macos x86_64" - "cerbero deps macos x86_64"
- "manifest"
dependencies:
- "cerbero deps macos x86_64"
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
build cerbero macos x86_64: build cerbero macos x86_64:
extends: '.cerbero macos x86_64' extends: '.cerbero macos x86_64'
except: variables:
variables: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-docs"
- $CI_PROJECT_NAME == "gst-sharp"
- $CI_PROJECT_NAME == "gst-plugins-rs"
# #
# Cerbero iOS build # Cerbero iOS build
@ -918,36 +786,24 @@ cerbero deps cross-ios universal:
cerbero cross-ios universal: cerbero cross-ios universal:
extends: '.cerbero cross-ios universal' extends: '.cerbero cross-ios universal'
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
needs: needs:
- "cerbero deps cross-ios universal" - "cerbero deps cross-ios universal"
- "manifest"
dependencies:
- "cerbero deps cross-ios universal"
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
build cerbero cross-ios universal: build cerbero cross-ios universal:
extends: '.cerbero cross-ios universal' extends: '.cerbero cross-ios universal'
except: variables:
variables: EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-sharp"
- $CI_PROJECT_NAME == "gst-plugins-rs"
documentation: documentation:
image: $FEDORA_IMAGE image: $FEDORA_IMAGE
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
variables:
EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-sharp|gst-integration-testsuites|gst-plugins-rs|gst-python)$/'
needs: needs:
- "build fedora x86_64" - "build fedora x86_64"
- "manifest"
dependencies:
- 'build fedora x86_64'
stage: integrate stage: integrate
script: script:
@ -960,14 +816,6 @@ documentation:
artifacts: artifacts:
paths: paths:
- documentation/ - documentation/
except:
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gst-python"
- $CI_PROJECT_NAME == "gst-sharp"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-plugins-rs"
# #
# Build an iOS App using the iOS binaries # Build an iOS App using the iOS binaries
@ -975,7 +823,7 @@ documentation:
.cross-ios universal examples: .cross-ios universal examples:
stage: 'integrate' stage: 'integrate'
extends: extends:
- '.global_retry_policy' - '.global_ci_policy'
variables: variables:
EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
# disable codesigning so we don't need developer identities on the CI # disable codesigning so we don't need developer identities on the CI
@ -985,6 +833,7 @@ documentation:
CODE_SIGN_IDENTITY="" CODE_SIGN_IDENTITY=""
CODE_SIGNING_ALLOWED="NO" CODE_SIGNING_ALLOWED="NO"
CODE_SIGN_ENTITLEMENTS="" CODE_SIGN_ENTITLEMENTS=""
EXCEPT_PROJECT_REGEX: '/^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
script: script:
# install the binaries # install the binaries
- installer -pkg gstreamer-1.0-devel-*-ios-universal.pkg -target CurrentUserHomeDirectory -verbose - installer -pkg gstreamer-1.0-devel-*-ios-universal.pkg -target CurrentUserHomeDirectory -verbose
@ -1015,44 +864,28 @@ cross-ios universal examples:
extends: ".cross-ios universal examples" extends: ".cross-ios universal examples"
needs: needs:
- "build cerbero cross-ios universal" - "build cerbero cross-ios universal"
- "manifest"
dependencies:
- "build cerbero cross-ios universal"
except:
variables:
- $CI_PROJECT_NAME == "cerbero"
- $CI_PROJECT_NAME == "gst-build"
- $CI_PROJECT_NAME == "gst-omx"
- $CI_PROJECT_NAME == "gst-integration-testsuites"
- $CI_PROJECT_NAME == "gstreamer-vaapi"
- $CI_PROJECT_NAME == "gst-plugins-rs"
cerbero cross-ios universal examples: cerbero cross-ios universal examples:
extends: ".cross-ios universal examples" extends: ".cross-ios universal examples"
variables:
ONLY_PROJECT_REGEX: '/^cerbero$/'
needs: needs:
- "cerbero cross-ios universal" - "cerbero cross-ios universal"
- "manifest"
dependencies:
- "cerbero cross-ios universal"
only:
variables:
- $CI_PROJECT_NAME == "cerbero"
build gst-omx zynq fedora x86_64: build gst-omx zynq fedora x86_64:
extends: 'build fedora x86_64' extends: 'build fedora x86_64'
variables: variables:
MESON_ARGS: "-Domx=enabled -Dgst-omx:target=zynqultrascaleplus -Dgst-omx:header_path=${CI_PROJECT_DIR}/vcu-omx-il/omx_header -Dpython=disabled -Dlibav=disabled -Dlibnice=disabled -Dugly=disabled -Dbad=disabled -Ddevtools=disabled -Dges=disabled -Drtsp_server=disabled -Dvaapi=disabled -Dsharp=disabled -Dgst-examples=disabled -Drs=disabled ${MESON_BUILDTYPE_ARGS} --werror" MESON_ARGS: "-Domx=enabled -Dgst-omx:target=zynqultrascaleplus -Dgst-omx:header_path=${CI_PROJECT_DIR}/vcu-omx-il/omx_header -Dpython=disabled -Dlibav=disabled -Dlibnice=disabled -Dugly=disabled -Dbad=disabled -Ddevtools=disabled -Dges=disabled -Drtsp_server=disabled -Dvaapi=disabled -Dsharp=disabled -Dgst-examples=disabled -Drs=disabled ${MESON_BUILDTYPE_ARGS} --werror"
ONLY_PROJECT_REGEX: '/^(gst-omx|gst-ci)$/'
before_script: before_script:
- git clone https://github.com/Xilinx/vcu-omx-il.git --branch=release-2019.2 ${CI_PROJECT_DIR}/vcu-omx-il - git clone https://github.com/Xilinx/vcu-omx-il.git --branch=release-2019.2 ${CI_PROJECT_DIR}/vcu-omx-il
only:
variables:
- $CI_PROJECT_NAME =~ /^(gst-omx|gst-ci)$/
build gst-omx tizonia fedora x86_64: build gst-omx tizonia fedora x86_64:
extends: 'build fedora x86_64' extends: 'build fedora x86_64'
variables: variables:
MESON_ARGS: "-Domx=enabled -Dgst-omx:target=tizonia -Dpython=disabled -Dlibav=disabled -Dlibnice=disabled -Dugly=disabled -Dbad=disabled -Ddevtools=disabled -Dges=disabled -Drtsp_server=disabled -Dvaapi=disabled -Dsharp=disabled -Dgst-examples=disabled -Drs=disabled ${MESON_BUILDTYPE_ARGS} --werror" MESON_ARGS: "-Domx=enabled -Dgst-omx:target=tizonia -Dpython=disabled -Dlibav=disabled -Dlibnice=disabled -Dugly=disabled -Dbad=disabled -Ddevtools=disabled -Dges=disabled -Drtsp_server=disabled -Dvaapi=disabled -Dsharp=disabled -Dgst-examples=disabled -Drs=disabled ${MESON_BUILDTYPE_ARGS} --werror"
PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}:${CI_PROJECT_DIR}/tizonia-install/lib64/pkgconfig/ PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}:${CI_PROJECT_DIR}/tizonia-install/lib64/pkgconfig/
ONLY_PROJECT_REGEX: '/^(gst-omx|gst-ci)$/'
before_script: before_script:
- git clone https://github.com/tizonia/tizonia-openmax-il --branch v0.20.2 - git clone https://github.com/tizonia/tizonia-openmax-il --branch v0.20.2
- cd tizonia-openmax-il - cd tizonia-openmax-il
@ -1060,29 +893,17 @@ build gst-omx tizonia fedora x86_64:
- ninja -C build - ninja -C build
- ninja -C build install - ninja -C build install
- cd .. - cd ..
only:
variables:
- $CI_PROJECT_NAME =~ /^(gst-omx|gst-ci)$/
build rust fedora x86_64: build rust fedora x86_64:
extends: 'build fedora x86_64' extends: 'build fedora x86_64'
variables: variables:
MESON_ARGS: "-Domx=disabled -Dpython=disabled -Dlibav=disabled -Dlibnice=disabled -Dugly=disabled -Dbad=disabled -Ddevtools=enabled -Dges=disabled -Drtsp_server=disabled -Dvaapi=disabled -Dsharp=disabled -Dgst-examples=disabled -Drs=enabled -Dgst-plugins-rs:sodium=system ${MESON_BUILDTYPE_ARGS} --werror" MESON_ARGS: "-Domx=disabled -Dpython=disabled -Dlibav=disabled -Dlibnice=disabled -Dugly=disabled -Dbad=disabled -Ddevtools=enabled -Dges=disabled -Drtsp_server=disabled -Dvaapi=disabled -Dsharp=disabled -Dgst-examples=disabled -Drs=enabled -Dgst-plugins-rs:sodium=system ${MESON_BUILDTYPE_ARGS} --werror"
only: ONLY_PROJECT_REGEX: '/^(gst-plugins-rs|gstreamer|gst-plugins-base|gst-ci|gst-build|gst-devtools)$/'
variables:
- $CI_PROJECT_NAME =~ /^(gst-plugins-rs|gstreamer|gst-plugins-base|gst-ci|gst-build|gst-devtools)$/
except:
variables:
- $CI_PROJECT_NAME == "cerbero"
check rust fedora: check rust fedora:
extends: '.test fedora x86_64' extends: '.test fedora x86_64'
needs: needs:
- 'build rust fedora x86_64' - 'build rust fedora x86_64'
dependencies:
- build rust fedora x86_64
variables: variables:
TEST_SUITE: "check.gst-plugins-rs.*" TEST_SUITE: "check.gst-plugins-rs.*"
only: ONLY_PROJECT_REGEX: '/^(gst-plugins-rs|gstreamer|gst-plugins-base|gst-ci|gst-build|gst-devtools)$/'
variables:
- $CI_PROJECT_NAME =~ /^(gst-plugins-rs|gstreamer|gst-plugins-base|gst-ci|gst-build|gst-devtools)$/