2020-06-11 12:45:24 +00:00
|
|
|
include:
|
|
|
|
- remote: "https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/7ea696055e322cc7aa4bcbe5422b56a198c4bdff/templates/ci-fairy.yml"
|
|
|
|
|
2018-11-08 10:32:14 +00:00
|
|
|
stages:
|
2020-06-19 12:27:36 +00:00
|
|
|
- 'build docker'
|
2018-11-23 16:45:31 +00:00
|
|
|
- 'preparation'
|
2019-06-12 05:38:14 +00:00
|
|
|
- 'pre-build'
|
2018-11-23 16:45:31 +00:00
|
|
|
- 'build'
|
|
|
|
- 'test'
|
2019-06-12 05:38:14 +00:00
|
|
|
# Use the resulting binaries
|
|
|
|
- 'integrate'
|
2018-11-08 10:32:14 +00:00
|
|
|
|
|
|
|
variables:
|
2019-04-24 05:42:27 +00:00
|
|
|
# Branch to track for modules that have no ref specified in the manifest
|
|
|
|
GST_UPSTREAM_BRANCH: 'master'
|
|
|
|
ORC_UPSTREAM_BRANCH: 'master'
|
2020-06-19 12:27:36 +00:00
|
|
|
|
|
|
|
###
|
|
|
|
# IMPORTANT
|
|
|
|
# These are the version tags for the docker images the CI runs against.
|
|
|
|
# If you are hacking on them or need a them to rebuild, its enough
|
|
|
|
# to change any part of the string of the image you want.
|
|
|
|
###
|
2021-06-30 15:45:52 +00:00
|
|
|
FEDORA_TAG: '2021-06-30.0'
|
2020-10-15 14:37:53 +00:00
|
|
|
CERBERO_TAG: '2020-10-22.0'
|
|
|
|
ANDROID_TAG: '2020-10-22.0'
|
|
|
|
MANIFEST_TAG: '2020-10-22.0'
|
|
|
|
TEST_MANIFEST_TAG: '2020-10-22.0'
|
|
|
|
INDENT_TAG: '2020-10-22.0'
|
2021-09-09 01:02:57 +00:00
|
|
|
WINDOWS_TAG: "2021-09-09.0"
|
2020-06-19 12:27:36 +00:00
|
|
|
|
|
|
|
GST_UPSTREAM_REPO: 'gstreamer/gst-ci'
|
|
|
|
|
|
|
|
FEDORA_AMD64_SUFFIX: 'amd64/fedora'
|
|
|
|
CERBERO_AMD64_SUFFIX: 'amd64/cerbero-fedora'
|
|
|
|
ANDROID_AMD64_SUFFIX: 'amd64/android-fedora'
|
|
|
|
MANIFEST_AMD64_SUFFIX: 'amd64/build-manifest'
|
|
|
|
TEST_MANIFEST_AMD64_SUFFIX: 'amd64/test-manifest'
|
2020-06-15 12:05:22 +00:00
|
|
|
INDENT_AMD64_SUFFIX: 'amd64/gst-indent'
|
2021-01-27 07:54:59 +00:00
|
|
|
WINDOWS_AMD64_SUFFIX: 'amd64/windows'
|
2021-09-08 12:14:57 +00:00
|
|
|
WINDOWS_RUST_AMD64_SUFFIX: 'amd64/windows-rust'
|
2020-06-19 12:27:36 +00:00
|
|
|
|
|
|
|
FEDORA_IMAGE: "$CI_REGISTRY_IMAGE/$FEDORA_AMD64_SUFFIX:$FEDORA_TAG-$GST_UPSTREAM_BRANCH"
|
2020-07-24 15:53:39 +00:00
|
|
|
FEDORA_DOCS_IMAGE: "registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora:2020-07-03.0-master"
|
2020-06-19 12:27:36 +00:00
|
|
|
CERBERO_IMAGE: "$CI_REGISTRY_IMAGE/$CERBERO_AMD64_SUFFIX:$CERBERO_TAG-$GST_UPSTREAM_BRANCH"
|
|
|
|
ANDROID_IMAGE: "$CI_REGISTRY_IMAGE/$ANDROID_AMD64_SUFFIX:$ANDROID_TAG-$GST_UPSTREAM_BRANCH"
|
|
|
|
MANIFEST_IMAGE: "$CI_REGISTRY_IMAGE/$MANIFEST_AMD64_SUFFIX:$MANIFEST_TAG-$GST_UPSTREAM_BRANCH"
|
|
|
|
TEST_MANIFEST_IMAGE: "$CI_REGISTRY_IMAGE/$TEST_MANIFEST_AMD64_SUFFIX:$TEST_MANIFEST_TAG-$GST_UPSTREAM_BRANCH"
|
2020-06-15 12:05:22 +00:00
|
|
|
INDENT_IMAGE: "$CI_REGISTRY_IMAGE/$INDENT_AMD64_SUFFIX:$INDENT_TAG-$GST_UPSTREAM_BRANCH"
|
2021-01-27 07:54:59 +00:00
|
|
|
WINDOWS_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
|
|
|
|
WINDOWS_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH"
|
2021-09-08 12:14:58 +00:00
|
|
|
|
|
|
|
RUST_MINIMUM_VERSION: '1.54.0'
|
2021-09-10 15:46:29 +00:00
|
|
|
RUST_LATEST_VERSION: '1.55.0'
|
2021-09-08 12:14:58 +00:00
|
|
|
|
|
|
|
WINDOWS_RUST_MINIMUM_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_RUST_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH-rust-$RUST_MINIMUM_VERSION"
|
|
|
|
WINDOWS_RUST_MINIMUM_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_RUST_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH-rust-$RUST_MINIMUM_VERSION"
|
|
|
|
|
|
|
|
WINDOWS_RUST_LATEST_IMAGE: "$CI_REGISTRY_IMAGE/$WINDOWS_RUST_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH-rust-$RUST_LATEST_VERSION"
|
|
|
|
WINDOWS_RUST_LATEST_UPSTREAM_IMAGE: "$CI_REGISTRY/$GST_UPSTREAM_REPO/$WINDOWS_RUST_AMD64_SUFFIX:$WINDOWS_TAG-$GST_UPSTREAM_BRANCH-rust-$RUST_LATEST_VERSION"
|
2019-04-24 05:42:27 +00:00
|
|
|
|
2021-03-05 06:28:47 +00:00
|
|
|
# Current windows image doesn't seem to be able to spawn procceses for reason,
|
|
|
|
# use a different image until this is debuged
|
|
|
|
# Running command 'c:/builds/alatiera/gst-ci/cerbero-build/build-tools/bin/meson --prefix=c:/builds/alatiera/gst-ci/cerbero-build/dist/msvc_x86_64 --libdir=lib -Ddebug=true --default-library=both -Doptimization=2 --backend=ninja --wrap-mode=nodownload -Db_vscrt=md --native-file c:/builds/alatiera/gst-ci/cerbero-build/sources/msvc_x86_64/gstreamer-1.0-1.19.0.1/_builddir/meson-native-file.txt -Dlibunwind=disabled -Ddbghelp=enabled -Dintrospection=disabled -Dexamples=disabled'
|
|
|
|
# failed to create process
|
|
|
|
CERBERO_WINDOWS_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:v13-master'
|
|
|
|
|
2020-09-17 19:06:55 +00:00
|
|
|
# Can't use $CI_* variables since we use this template in all repos, not just gst-ci
|
2020-10-04 13:30:46 +00:00
|
|
|
CERBERO_SCRIPT_URL: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/cerbero_setup.sh"
|
2021-09-09 10:26:01 +00:00
|
|
|
WINDOWS_CONTAINER_SCRIPT_URL: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/docker/windows/container.ps1"
|
2020-08-06 17:21:44 +00:00
|
|
|
|
2018-11-08 10:32:14 +00:00
|
|
|
GIT_STRATEGY: none
|
2019-05-25 11:48:12 +00:00
|
|
|
MESON_BUILDTYPE_ARGS: --default-library=both
|
2018-11-22 18:24:26 +00:00
|
|
|
DEFAULT_MESON_ARGS: >
|
2020-04-17 04:29:16 +00:00
|
|
|
-Dlibnice:tests=disabled
|
|
|
|
-Dlibnice:examples=disabled
|
|
|
|
-Dopenh264:tests=disabled
|
|
|
|
-Dpygobject:tests=false
|
2018-11-22 18:24:26 +00:00
|
|
|
-Dpython=enabled
|
|
|
|
-Dlibav=enabled
|
|
|
|
-Dugly=enabled
|
|
|
|
-Dbad=enabled
|
|
|
|
-Ddevtools=enabled
|
|
|
|
-Dges=enabled
|
|
|
|
-Drtsp_server=enabled
|
|
|
|
-Dvaapi=enabled
|
|
|
|
-Dsharp=disabled
|
2018-11-08 10:32:14 +00:00
|
|
|
|
2019-09-30 04:44:10 +00:00
|
|
|
MESON_GST_WERROR: >
|
|
|
|
-Dgstreamer:werror=true
|
|
|
|
-Dgst-plugins-base:werror=true
|
|
|
|
-Dgst-plugins-good:werror=true
|
|
|
|
-Dgst-plugins-ugly:werror=true
|
|
|
|
-Dgst-plugins-bad:werror=true
|
|
|
|
-Dgst-rtsp-server:werror=true
|
|
|
|
-Dgst-libav:werror=true
|
|
|
|
-Dgst-examples:werror=true
|
|
|
|
-Dgst-editing-services:werror=true
|
|
|
|
-Dgst-docs:werror=true
|
|
|
|
-Dgst-omx:werror=true
|
|
|
|
-Dgst-devtools:werror=true
|
|
|
|
-Dgst-python:werror=true
|
|
|
|
-Dgstreamer-vaapi:werror=true
|
|
|
|
-Dgstreamer-sharp:werror=true
|
|
|
|
|
2019-03-11 09:12:01 +00:00
|
|
|
DEFAULT_CERBERO_ARGS: >
|
2019-03-25 11:53:37 +00:00
|
|
|
--variants werror
|
|
|
|
--timestamps
|
2019-03-11 09:12:01 +00:00
|
|
|
|
2020-10-14 18:26:35 +00:00
|
|
|
workflow:
|
|
|
|
rules:
|
|
|
|
- if: $CI_MERGE_REQUEST_IID
|
2021-01-26 06:39:42 +00:00
|
|
|
# don't create a pipeline if its a commit pipeline, on a branch and that branch has
|
|
|
|
# open merge requests (bc we will get a MR build instead)
|
|
|
|
- if: $CI_OPEN_MERGE_REQUESTS
|
|
|
|
when: never
|
2020-10-14 18:26:35 +00:00
|
|
|
- if: $CI_COMMIT_TAG
|
|
|
|
- if: $CI_COMMIT_BRANCH
|
2021-01-26 06:39:42 +00:00
|
|
|
|
2020-03-04 14:58:38 +00:00
|
|
|
#
|
|
|
|
# Global CI policy
|
|
|
|
#
|
2020-03-18 01:58:54 +00:00
|
|
|
# This can be used to configure global behaviour our our jobs.
|
2020-03-04 14:58:38 +00:00
|
|
|
#
|
2020-07-02 14:21:58 +00:00
|
|
|
default:
|
2019-09-11 14:39:14 +00:00
|
|
|
retry:
|
|
|
|
max: 2
|
|
|
|
when:
|
|
|
|
- 'runner_system_failure'
|
2020-03-09 13:27:25 +00:00
|
|
|
- 'stuck_or_timeout_failure'
|
|
|
|
- 'scheduler_failure'
|
2019-09-11 14:39:14 +00:00
|
|
|
- 'api_failure'
|
2020-03-04 21:46:57 +00:00
|
|
|
interruptible: true
|
2019-09-11 14:39:14 +00:00
|
|
|
|
2020-06-19 12:27:36 +00:00
|
|
|
|
|
|
|
# Script to check if a docker image exists in the upstream registry
|
|
|
|
# and if so copy it to the forked registry so we can use it
|
|
|
|
#
|
|
|
|
# This is copied/adapted from citemplates/templates/fedora.yml
|
|
|
|
# https://gitlab.freedesktop.org/freedesktop/ci-templates/-/blob/96b621fe9f57ec2464f8d1a0940446afbf6c8f59/templates/fedora.yml
|
|
|
|
.check_image: &check_image_exists |
|
|
|
|
# if-not-exists steps
|
|
|
|
set -x
|
|
|
|
|
|
|
|
if [[ -z "$GST_FORCE_REBUILD" ]]
|
|
|
|
then
|
|
|
|
# disable exit on failure
|
|
|
|
set +e
|
|
|
|
|
|
|
|
# check if our image is already in the current registry
|
|
|
|
# we store the sha of the digest and the layers
|
|
|
|
skopeo inspect docker://$LOCAL_IMAGE | jq '[.Digest, .Layers]' > local_sha
|
|
|
|
|
2020-06-25 09:35:10 +00:00
|
|
|
# check if our image is already in our gst-ci registry fork
|
|
|
|
skopeo inspect docker://$LOCAL_GST_CI_IMAGE | jq '[.Digest, .Layers]' > local_gst_ci_sha
|
|
|
|
|
2020-06-19 12:27:36 +00:00
|
|
|
# check if our image is already in the upstream registry
|
|
|
|
if [[ -z "$GST_UPSTREAM_REPO" ]]
|
|
|
|
then
|
|
|
|
echo "WARNING! Variable \$GST_UPSTREAM_REPO is undefined, cannot check for images"
|
|
|
|
else
|
|
|
|
skopeo inspect docker://$GST_UPSTREAM_IMAGE | jq '[.Digest, .Layers]' > upstream_sha
|
|
|
|
fi
|
|
|
|
|
|
|
|
# reenable exit on failure
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# if the upstream repo has an image, ensure we use the same
|
|
|
|
if [ -s upstream_sha ]
|
|
|
|
then
|
|
|
|
|
2020-07-01 14:22:33 +00:00
|
|
|
echo "Checking if $LOCAL_IMAGE is up to date"
|
2020-06-19 12:27:36 +00:00
|
|
|
# ensure we use the same image from upstream
|
|
|
|
diff upstream_sha local_sha && exit 0 || true
|
|
|
|
|
2020-07-01 14:22:33 +00:00
|
|
|
echo "Copying image from gstreamer/gst-ci to local registry"
|
2020-06-19 12:27:36 +00:00
|
|
|
# copy the original image into the current project registry namespace
|
|
|
|
# we do 2 attempts with skopeo copy at most
|
|
|
|
skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
|
|
|
|
docker://$GST_UPSTREAM_IMAGE \
|
|
|
|
docker://$LOCAL_IMAGE || \
|
|
|
|
skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
|
|
|
|
docker://$GST_UPSTREAM_IMAGE \
|
|
|
|
docker://$LOCAL_IMAGE
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2020-07-01 14:22:33 +00:00
|
|
|
set +x
|
|
|
|
|
2020-06-25 09:35:10 +00:00
|
|
|
# if the local ci fork repo has an image, ensure we use the same
|
|
|
|
if [ -s local_gst_ci_sha ]
|
|
|
|
then
|
2020-07-01 14:22:33 +00:00
|
|
|
echo "Checking if $LOCAL_GST_CI_IMAGE is up to date"
|
2020-06-25 09:35:10 +00:00
|
|
|
# ensure we use the same image from upstream
|
|
|
|
diff local_gst_ci_sha local_sha && exit 0 || true
|
|
|
|
|
2020-07-01 14:22:33 +00:00
|
|
|
echo "Copying image from $CI_PROJECT_NAMESPACE/gst-ci to local registry"
|
2020-06-25 09:35:10 +00:00
|
|
|
# copy the original image into the current project registry namespace
|
|
|
|
# we do 2 attempts with skopeo copy at most
|
|
|
|
skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
|
|
|
|
docker://$LOCAL_GST_CI_IMAGE \
|
|
|
|
docker://$LOCAL_IMAGE || \
|
|
|
|
skopeo copy --dest-creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD \
|
|
|
|
docker://$LOCAL_GST_CI_IMAGE \
|
|
|
|
docker://$LOCAL_IMAGE
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2020-06-19 12:27:36 +00:00
|
|
|
# if we have a local image but none in the upstream repo, use our
|
|
|
|
if [ -s local_sha ]
|
|
|
|
then
|
2020-07-01 14:22:33 +00:00
|
|
|
echo "Using $LOCAL_IMAGE"
|
2020-06-19 12:27:36 +00:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# Build docker images from Dockerfiles
|
|
|
|
#
|
|
|
|
# This is copied/adapted from citemplates/templates/fedora.yml
|
|
|
|
# https://gitlab.freedesktop.org/freedesktop/ci-templates/-/blob/96b621fe9f57ec2464f8d1a0940446afbf6c8f59/templates/fedora.yml
|
|
|
|
#
|
|
|
|
# CITemplates builds uses buildah run/commit workflow to build the images which doesn't
|
|
|
|
# fit us atm and our images need further adjustment to make use of it. Porting to
|
|
|
|
# ci-templates is the next step though.
|
|
|
|
#
|
|
|
|
# All the documentation from citemplates should be applicable here, so please refer there
|
|
|
|
.base:
|
2020-09-09 14:34:39 +00:00
|
|
|
image: "$CI_REGISTRY/freedesktop/ci-templates/buildah:2020-07-20.1"
|
2020-06-19 12:27:36 +00:00
|
|
|
variables:
|
|
|
|
STORAGE_DRIVER: 'vfs'
|
|
|
|
BUILDAH_FORMAT: 'docker'
|
|
|
|
BUILDAH_ISOLATION: 'chroot'
|
|
|
|
|
|
|
|
GIT_STRATEGY: fetch
|
|
|
|
script:
|
|
|
|
- export LOCAL_IMAGE="$CI_REGISTRY_IMAGE/$REPO_SUFFIX:$TAG"
|
2020-06-25 09:35:10 +00:00
|
|
|
- export LOCAL_GST_CI_IMAGE="$CI_REGISTRY/$CI_PROJECT_NAMESPACE/gst-ci/$REPO_SUFFIX:$TAG"
|
2020-06-19 12:27:36 +00:00
|
|
|
- export GST_UPSTREAM_IMAGE="$CI_REGISTRY/$GST_UPSTREAM_REPO/$REPO_SUFFIX:$TAG"
|
|
|
|
|
2020-06-29 21:12:45 +00:00
|
|
|
# check if the docker registry is enabled, else the variable will be missing
|
|
|
|
- |
|
|
|
|
if [[ -z "$CI_REGISTRY_IMAGE" ]]
|
|
|
|
then
|
|
|
|
echo "ERROR! Looks like your repository/fork has disabled Docker Registries."
|
|
|
|
echo "Pleae enable them by following the documentation from here:"
|
|
|
|
echo "https://docs.gitlab.com/ee/user/packages/container_registry/#enable-the-container-registry-for-your-project"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-06-19 12:27:36 +00:00
|
|
|
# Newer versions of podman/buildah try to set overlayfs mount options when
|
|
|
|
# using the vfs driver, and this causes errors.
|
|
|
|
- sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
|
|
|
|
|
2020-06-25 09:49:05 +00:00
|
|
|
- *check_image_exists
|
2020-06-19 12:27:36 +00:00
|
|
|
|
2020-06-25 09:35:10 +00:00
|
|
|
# This part of the job should only ever be possible to be reach in a gst-ci fork
|
|
|
|
- |
|
|
|
|
if [[ "$CI_PROJECT_NAME" != 'gst-ci' ]]
|
|
|
|
then
|
|
|
|
echo "ERROR! Something is wrong!"
|
|
|
|
echo "This part of the job is supposed to be executed only in gst-ci forks, and its probably going to fail else"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-06-19 12:27:36 +00:00
|
|
|
- echo "Building image $LOCAL_IMAGE"
|
|
|
|
|
|
|
|
- >
|
|
|
|
buildah bud
|
|
|
|
--build-arg DEFAULT_BRANCH=$GST_UPSTREAM_BRANCH
|
|
|
|
--label ci.job_id=$CI_JOB_ID
|
|
|
|
--label pipeline.url=$CI_PIPELINE_URL
|
|
|
|
--label git.ref_name=$CI_COMMIT_REF_NAME
|
|
|
|
--label git.sha=$CI_COMMIT_SHA
|
|
|
|
--label gitlab.project_path=$CI_PROJECT_PATH
|
|
|
|
--label gitlab.project_url=$CI_PROJECT_URL
|
|
|
|
--label fdo.upstream-repo=$GST_UPSTREAM_REPO
|
|
|
|
-f $DOCKERFILE
|
|
|
|
-t $LOCAL_IMAGE
|
|
|
|
$CONTEXT_DIR
|
|
|
|
|
|
|
|
- buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
|
|
|
|
|
|
# Sanity check
|
|
|
|
- |
|
|
|
|
if [ "$CI_PROJECT_PATH" = "gstreamer/gst-ci" ]; then
|
|
|
|
if [ "$LOCAL_IMAGE" != "$GST_UPSTREAM_IMAGE" ]; then
|
|
|
|
echo "ERROR!!! AAAAA! THE IMAGE URI DOES NOT MATCH THE EXPECTED UPSTREAM ONE"
|
|
|
|
echo $LOCAL_IMAGE
|
|
|
|
echo $GST_UPSTREAM_IMAGE
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
- buildah push $LOCAL_IMAGE
|
|
|
|
|
|
|
|
fedora amd64 docker:
|
|
|
|
stage: "build docker"
|
|
|
|
variables:
|
|
|
|
REPO_SUFFIX: "$FEDORA_AMD64_SUFFIX"
|
|
|
|
TAG: "$FEDORA_TAG-$GST_UPSTREAM_BRANCH"
|
|
|
|
|
|
|
|
CONTEXT_DIR: "./docker/fedora/"
|
|
|
|
DOCKERFILE: "docker/fedora/Dockerfile"
|
|
|
|
extends: .base
|
|
|
|
|
|
|
|
cerbero fedora amd64 docker:
|
|
|
|
stage: "build docker"
|
|
|
|
variables:
|
|
|
|
REPO_SUFFIX: "$CERBERO_AMD64_SUFFIX"
|
|
|
|
TAG: "$CERBERO_TAG-$GST_UPSTREAM_BRANCH"
|
|
|
|
|
|
|
|
CONTEXT_DIR: "docker/cerbero/"
|
|
|
|
DOCKERFILE: "docker/cerbero/Dockerfile-fedora"
|
|
|
|
extends: .base
|
|
|
|
|
|
|
|
android docker:
|
|
|
|
stage: "build docker"
|
|
|
|
variables:
|
|
|
|
REPO_SUFFIX: "$ANDROID_AMD64_SUFFIX"
|
|
|
|
TAG: "$ANDROID_TAG-$GST_UPSTREAM_BRANCH"
|
|
|
|
|
|
|
|
CONTEXT_DIR: "docker/android/"
|
|
|
|
DOCKERFILE: "docker/android/Dockerfile"
|
|
|
|
extends: .base
|
|
|
|
|
|
|
|
alpine amd64 manifest builder docker:
|
|
|
|
stage: "build docker"
|
|
|
|
variables:
|
|
|
|
REPO_SUFFIX: "$MANIFEST_AMD64_SUFFIX"
|
|
|
|
TAG: '$MANIFEST_TAG-$GST_UPSTREAM_BRANCH'
|
|
|
|
|
|
|
|
CONTEXT_DIR: "docker/build_manifest/"
|
|
|
|
DOCKERFILE: "docker/build_manifest/Dockerfile"
|
|
|
|
extends: .base
|
|
|
|
|
|
|
|
gst-indent amd64 docker:
|
|
|
|
stage: "build docker"
|
|
|
|
variables:
|
|
|
|
REPO_SUFFIX: "$INDENT_AMD64_SUFFIX"
|
2020-06-15 12:05:22 +00:00
|
|
|
TAG: "$INDENT_TAG-$GST_UPSTREAM_BRANCH"
|
2020-06-19 12:27:36 +00:00
|
|
|
|
|
|
|
CONTEXT_DIR: "docker/indent/"
|
|
|
|
DOCKERFILE: "docker/indent/Dockerfile"
|
|
|
|
extends: .base
|
|
|
|
|
2021-01-27 07:54:59 +00:00
|
|
|
windows amd64 docker:
|
|
|
|
stage: "build docker"
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: fetch
|
|
|
|
|
|
|
|
# Unlike the buildah/linux jobs, this file
|
|
|
|
# needs to be relative to docker/windows/ subdir
|
|
|
|
# as it makes life easier in the powershell script
|
|
|
|
#
|
|
|
|
# We also don't need a CONTEXT_DIR var as its also
|
|
|
|
# hardcoded to be docker/windows/
|
2021-09-08 12:14:57 +00:00
|
|
|
DOCKERFILE: "docker/windows/Dockerfile"
|
2021-01-27 07:54:59 +00:00
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
- shell
|
|
|
|
- "1809"
|
|
|
|
script:
|
2021-09-08 12:14:57 +00:00
|
|
|
# We need to pass an array and to resolve the env vars, so we can't use a variable:
|
|
|
|
- $DOCKER_BUILD_ARGS = @("--build-arg", "DEFAULT_BRANCH=$GST_UPSTREAM_BRANCH")
|
|
|
|
|
2021-01-27 07:54:59 +00:00
|
|
|
- $env:WINDOWS_CONTAINER_SCRIPT_PATH = "$env:CI_PROJECT_DIR\container.ps1"
|
|
|
|
- echo "Fetching $env:WINDOWS_CONTAINER_SCRIPT_URL"
|
|
|
|
- Invoke-WebRequest -Uri $env:WINDOWS_CONTAINER_SCRIPT_URL -OutFile $env:WINDOWS_CONTAINER_SCRIPT_PATH
|
|
|
|
|
|
|
|
- "& $env:WINDOWS_CONTAINER_SCRIPT_PATH $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $WINDOWS_IMAGE $WINDOWS_UPSTREAM_IMAGE $DOCKERFILE"
|
|
|
|
- |
|
|
|
|
if (!($?)) {
|
|
|
|
echo "Failed to build the image"
|
|
|
|
Exit 1
|
|
|
|
}
|
|
|
|
|
2021-09-08 12:14:58 +00:00
|
|
|
.windows rust docker build:
|
2021-08-26 17:00:50 +00:00
|
|
|
stage: 'build docker'
|
2021-09-08 12:14:57 +00:00
|
|
|
needs:
|
|
|
|
- job: 'windows amd64 docker'
|
|
|
|
artifacts: false
|
2021-09-10 15:48:08 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME == "gst-ci"'
|
2021-09-08 12:14:57 +00:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: 'fetch'
|
|
|
|
|
|
|
|
# Unlike the buildah/linux jobs, this file
|
|
|
|
# needs to be relative to docker/windows/ subdir
|
|
|
|
# as it makes life easier in the powershell script
|
|
|
|
#
|
|
|
|
# We also don't need a CONTEXT_DIR var as its also
|
|
|
|
# hardcoded to be docker/windows/
|
|
|
|
DOCKERFILE: 'docker/windows/rust.Dockerfile'
|
|
|
|
tags:
|
|
|
|
- 'windows'
|
|
|
|
- 'shell'
|
|
|
|
- '1809'
|
|
|
|
script:
|
|
|
|
# We need to pass an array and to resolve the env vars, so we can't use a variable:
|
2021-09-08 12:14:58 +00:00
|
|
|
- $DOCKER_BUILD_ARGS = @("--build-arg", "DEFAULT_BRANCH=$GST_UPSTREAM_BRANCH", "--build-arg", "BASE_IMAGE=$WINDOWS_IMAGE", "--build-arg", "RUST_VERSION=$RUST_VERSION")
|
2021-09-08 12:14:57 +00:00
|
|
|
|
|
|
|
- $env:WINDOWS_CONTAINER_SCRIPT_PATH = "$env:CI_PROJECT_DIR\container.ps1"
|
|
|
|
- echo "Fetching $env:WINDOWS_CONTAINER_SCRIPT_URL"
|
|
|
|
- Invoke-WebRequest -Uri $env:WINDOWS_CONTAINER_SCRIPT_URL -OutFile $env:WINDOWS_CONTAINER_SCRIPT_PATH
|
|
|
|
|
2021-09-08 12:14:58 +00:00
|
|
|
- "& $env:WINDOWS_CONTAINER_SCRIPT_PATH $CI_REGISTRY $CI_REGISTRY_USER $CI_REGISTRY_PASSWORD $RUST_IMAGE $RUST_UPSTREAM_IMAGE $DOCKERFILE"
|
2021-09-08 12:14:57 +00:00
|
|
|
- |
|
|
|
|
if (!($?)) {
|
|
|
|
echo "Failed to build the image"
|
|
|
|
Exit 1
|
|
|
|
}
|
|
|
|
|
2021-09-08 12:14:58 +00:00
|
|
|
windows rust amd64 docker latest stable:
|
|
|
|
extends: '.windows rust docker build'
|
|
|
|
variables:
|
|
|
|
RUST_IMAGE: !reference [variables, "WINDOWS_RUST_LATEST_IMAGE"]
|
|
|
|
RUST_UPSTREAM_IMAGE: !reference [variables, "WINDOWS_RUST_LATEST_UPSTREAM_IMAGE"]
|
|
|
|
RUST_VERSION: !reference [variables, "RUST_LATEST_VERSION"]
|
|
|
|
|
|
|
|
windows rust amd64 docker minimum supported version:
|
|
|
|
extends: '.windows rust docker build'
|
|
|
|
variables:
|
|
|
|
RUST_IMAGE: !reference [variables, "WINDOWS_RUST_MINIMUM_IMAGE"]
|
|
|
|
RUST_UPSTREAM_IMAGE: !reference [variables, "WINDOWS_RUST_MINIMUM_UPSTREAM_IMAGE"]
|
|
|
|
RUST_VERSION: !reference [variables, "RUST_MINIMUM_VERSION"]
|
2021-09-08 12:14:57 +00:00
|
|
|
|
2020-06-19 12:27:36 +00:00
|
|
|
#
|
|
|
|
# Job to create the manifest.xml to used for our builds
|
|
|
|
#
|
2018-11-08 10:32:14 +00:00
|
|
|
manifest:
|
2019-01-08 06:13:07 +00:00
|
|
|
image: $MANIFEST_IMAGE
|
2020-03-04 22:30:06 +00:00
|
|
|
rules:
|
2020-08-26 11:55:58 +00:00
|
|
|
# Always have automatic pipeline for branchs in cerbero and docs
|
|
|
|
# cause they need to update artifacts, like the docs site or cerbero deps
|
2020-03-04 22:30:06 +00:00
|
|
|
- if: '$CI_PROJECT_PATH == "gstreamer/cerbero"'
|
2020-03-25 18:36:48 +00:00
|
|
|
- if: '$CI_PROJECT_PATH == "gstreamer/gst-docs"'
|
2020-08-26 11:55:58 +00:00
|
|
|
|
2020-10-08 10:57:36 +00:00
|
|
|
# If the MR is assigned to the Merge bot, trigger the pipeline automatically
|
|
|
|
- if: '$CI_MERGE_REQUEST_ASSIGNEES == "gstreamer-merge-bot"'
|
|
|
|
# When the assignee isn't the merge bot, require an explicit action to trigger the pipeline
|
2020-08-26 11:55:58 +00:00
|
|
|
# to avoid wasting CI resources
|
2020-10-08 10:57:36 +00:00
|
|
|
- if: '$CI_MERGE_REQUEST_ASSIGNEES != "gstreamer-merge-bot"'
|
2020-08-26 11:55:58 +00:00
|
|
|
when: 'manual'
|
2021-05-24 20:11:10 +00:00
|
|
|
allow_failure: false
|
2020-08-26 11:55:58 +00:00
|
|
|
# If this matches, it means the pipeline is running against either the main
|
|
|
|
# or a stable branch, so make it manual
|
2020-09-28 04:24:27 +00:00
|
|
|
- if: '$CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
|
2020-08-26 11:55:58 +00:00
|
|
|
when: 'manual'
|
2021-05-24 20:11:10 +00:00
|
|
|
allow_failure: false
|
2020-08-26 11:55:58 +00:00
|
|
|
|
2018-11-23 16:45:31 +00:00
|
|
|
stage: 'preparation'
|
2018-11-08 10:32:14 +00:00
|
|
|
script:
|
2018-11-11 12:33:13 +00:00
|
|
|
- cd /gst-ci
|
|
|
|
- gitlab/build_manifest.py --self-update
|
|
|
|
- gitlab/build_manifest.py ${CI_PROJECT_DIR}/manifest.xml
|
|
|
|
- cat ${CI_PROJECT_DIR}/manifest.xml
|
2018-11-08 10:32:14 +00:00
|
|
|
artifacts:
|
2018-12-14 12:09:10 +00:00
|
|
|
expire_in: "7 days"
|
2018-11-08 10:32:14 +00:00
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
|
|
|
|
2020-06-19 12:27:36 +00:00
|
|
|
#
|
|
|
|
# gst-indent!!
|
|
|
|
#
|
2018-11-13 11:43:42 +00:00
|
|
|
gst indent:
|
2019-01-08 06:13:07 +00:00
|
|
|
image: $INDENT_IMAGE
|
2018-11-13 11:43:42 +00:00
|
|
|
stage: 'preparation'
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: 'fetch'
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(gstreamer-sharp|gst-integration-testsuites|cerbero|gst-docs)$/'
|
2018-11-13 11:43:42 +00:00
|
|
|
script:
|
|
|
|
# man indent. grep RETURN VALUE, grab a beer on my behalf...
|
|
|
|
- indent --version || true
|
2020-08-04 23:32:17 +00:00
|
|
|
- |
|
2020-08-05 20:04:18 +00:00
|
|
|
filter_cmd=("cat")
|
2020-08-04 23:32:17 +00:00
|
|
|
if test -f ".indentignore"; then
|
2020-08-05 20:04:18 +00:00
|
|
|
filter_args=()
|
2020-08-04 23:32:17 +00:00
|
|
|
while read -r line; do
|
|
|
|
if test -n "$line"; then
|
2020-08-05 20:04:18 +00:00
|
|
|
filter_args+=("-e" "$line")
|
2020-08-04 23:32:17 +00:00
|
|
|
fi
|
|
|
|
done < ".indentignore"
|
2020-08-05 20:04:18 +00:00
|
|
|
if [[ ${#filter_args[@]} -gt 0 ]]; then
|
|
|
|
filter_cmd=("grep" "-v" "${filter_args[@]}")
|
2020-08-04 23:32:17 +00:00
|
|
|
fi
|
|
|
|
fi
|
2020-08-05 20:04:18 +00:00
|
|
|
find . -name '*.c' | "${filter_cmd[@]}" | xargs -d '\n' gst-indent
|
2018-11-13 11:43:42 +00:00
|
|
|
- |
|
2018-12-05 21:12:09 +00:00
|
|
|
if git diff --quiet; then
|
|
|
|
echo "Code is properly formatted"
|
|
|
|
else
|
2018-11-13 11:43:42 +00:00
|
|
|
git diff --color=always
|
|
|
|
echo 'style diverges, please run gst-indent first'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-11-27 01:05:11 +00:00
|
|
|
#
|
|
|
|
# Check "allow-edit" checkbox on merge requests with ci-fairy
|
|
|
|
#
|
|
|
|
check allow-edit:
|
|
|
|
extends: '.fdo.ci-fairy'
|
|
|
|
needs: []
|
|
|
|
stage: 'preparation'
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: 'none'
|
|
|
|
script:
|
|
|
|
- ci-fairy check-merge-request --require-allow-collaboration
|
|
|
|
rules:
|
|
|
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
|
|
|
|
2020-06-19 12:27:36 +00:00
|
|
|
#
|
|
|
|
# gst-build setup templates
|
|
|
|
#
|
2020-04-21 08:54:04 +00:00
|
|
|
.gst_build_template: &gst_build
|
|
|
|
- echo $MESON_ARGS
|
2020-04-27 12:39:45 +00:00
|
|
|
# Sometimes, gitlab-runner want to reuse
|
|
|
|
# existing docker volumes without cleaning them up...
|
|
|
|
# Make sure the docker volume is clean
|
|
|
|
- rm -rf gst-build || true
|
|
|
|
- rm -rf meson-logs || true
|
|
|
|
- rm -rf validate-logs || true
|
2020-04-21 08:54:04 +00:00
|
|
|
|
|
|
|
- curl -L -o clone_manifest_ref.py "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py"
|
|
|
|
- python3 clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination gst-build
|
|
|
|
- cd gst-build/
|
|
|
|
# only copy immediate directories. We don't want to modify .wrap files
|
|
|
|
- find /gst-build/subprojects/ -mindepth 1 -maxdepth 1 -type d -exec cp -r \{\} subprojects/ \;
|
2020-12-16 15:22:40 +00:00
|
|
|
|
|
|
|
# Reset the state of the subprojects to what gst-build expects
|
|
|
|
- meson subprojects update --reset
|
2020-04-21 08:54:04 +00:00
|
|
|
- ./git-update --no-interaction --manifest="${CI_PROJECT_DIR}/manifest.xml"
|
2020-12-16 15:22:40 +00:00
|
|
|
|
2020-04-21 08:54:04 +00:00
|
|
|
- meson build/ $MESON_ARGS
|
|
|
|
- ninja -C build/
|
|
|
|
- ccache --show-stats
|
|
|
|
|
|
|
|
.gst_build_ccache_vars:
|
|
|
|
variables:
|
|
|
|
CCACHE_COMPILERCHECK: 'content'
|
|
|
|
CCACHE_COMPRESS: 'true'
|
|
|
|
CCACHE_BASEDIR: '/cache/gstreamer/gst-build'
|
|
|
|
CCACHE_DIR: '/cache/gstreamer/gst-build/ccache/'
|
|
|
|
# shared across everything really
|
|
|
|
CCACHE_MAXSIZE: '10G'
|
|
|
|
CARGO_HOME: '/cache/gstreamer/cargo'
|
|
|
|
|
|
|
|
.simple_fedora_build: &simple_build >-
|
|
|
|
${DEFAULT_MESON_ARGS}
|
|
|
|
-Dsharp=enabled
|
|
|
|
-Domx=enabled
|
|
|
|
-Dgst-omx:target=generic
|
2020-06-04 02:33:50 +00:00
|
|
|
-Ddoc=disabled
|
2020-04-21 08:54:04 +00:00
|
|
|
-Drs=disabled
|
|
|
|
${MESON_BUILDTYPE_ARGS}
|
2019-09-30 04:44:10 +00:00
|
|
|
${MESON_GST_WERROR}
|
2020-04-21 08:54:04 +00:00
|
|
|
|
2018-11-08 10:32:14 +00:00
|
|
|
.build:
|
2019-06-12 05:38:14 +00:00
|
|
|
stage: 'build'
|
2019-09-11 14:39:14 +00:00
|
|
|
extends:
|
2020-04-21 08:54:04 +00:00
|
|
|
- '.gst_build_ccache_vars'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
|
|
|
- "manifest"
|
2019-11-28 12:59:30 +00:00
|
|
|
# Taking into account the slowest shared runner + time needed to upload the binaries to artifacts
|
2019-12-02 22:53:02 +00:00
|
|
|
# Also need to take into account I/O of pulling docker images and uploading artifacts
|
|
|
|
timeout: '45min'
|
2018-11-08 10:32:14 +00:00
|
|
|
variables:
|
2019-09-30 04:44:10 +00:00
|
|
|
MESON_ARGS: "${DEFAULT_MESON_ARGS} ${MESON_BUILDTYPE_ARGS} ${MESON_GST_WERROR}"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME != "cerbero"'
|
2018-11-08 10:32:14 +00:00
|
|
|
script:
|
2020-04-21 08:54:04 +00:00
|
|
|
*gst_build
|
2018-11-08 10:32:14 +00:00
|
|
|
after_script:
|
2020-04-21 08:54:04 +00:00
|
|
|
- mv gst-build/build/meson-logs/ meson-logs
|
|
|
|
# Cleanup everything else to reduce the size
|
|
|
|
# of the docker volume we leave behind
|
|
|
|
- rm -rf gst-build
|
2020-03-26 11:50:03 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: "7 days"
|
|
|
|
when: "always"
|
|
|
|
paths:
|
2020-04-21 08:54:04 +00:00
|
|
|
- 'meson-logs/'
|
2020-04-16 18:11:36 +00:00
|
|
|
- 'manifest.xml'
|
2018-11-08 10:32:14 +00:00
|
|
|
|
2020-04-02 12:42:41 +00:00
|
|
|
.build fedora x86_64:
|
2018-11-21 14:55:02 +00:00
|
|
|
extends: '.build'
|
2019-01-08 06:13:07 +00:00
|
|
|
image: $FEDORA_IMAGE
|
2019-02-25 22:17:11 +00:00
|
|
|
variables:
|
2020-04-21 08:54:04 +00:00
|
|
|
MESON_ARGS: *simple_build
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-omx|gst-plugins-rs)$/'
|
2020-04-02 12:42:41 +00:00
|
|
|
|
2019-03-27 15:17:23 +00:00
|
|
|
build nodebug fedora x86_64:
|
2019-03-20 19:45:31 +00:00
|
|
|
extends: '.build'
|
2019-08-07 16:40:27 +00:00
|
|
|
image: $FEDORA_IMAGE
|
2019-03-20 19:45:31 +00:00
|
|
|
variables:
|
2019-09-30 04:44:10 +00:00
|
|
|
MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic ${MESON_BUILDTYPE_ARGS} ${MESON_GST_WERROR}"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
|
2019-05-25 11:48:12 +00:00
|
|
|
|
|
|
|
build static fedora x86_64:
|
2020-04-02 12:42:41 +00:00
|
|
|
extends: '.build fedora x86_64'
|
2019-05-25 11:48:12 +00:00
|
|
|
variables:
|
|
|
|
MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
|
2019-05-25 11:48:12 +00:00
|
|
|
|
|
|
|
build static nodebug fedora x86_64:
|
|
|
|
extends: 'build nodebug fedora x86_64'
|
|
|
|
variables:
|
|
|
|
MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
|
2019-03-20 19:45:31 +00:00
|
|
|
|
2019-08-26 10:57:16 +00:00
|
|
|
build clang fedora x86_64:
|
2020-04-02 12:42:41 +00:00
|
|
|
extends: '.build fedora x86_64'
|
2019-08-26 10:57:16 +00:00
|
|
|
variables:
|
|
|
|
CC: 'ccache clang'
|
|
|
|
CXX: 'ccache clang++'
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
|
2019-08-26 10:57:16 +00:00
|
|
|
|
2018-11-21 15:24:00 +00:00
|
|
|
.test:
|
|
|
|
stage: 'test'
|
2019-09-11 14:39:14 +00:00
|
|
|
extends:
|
2020-04-21 08:54:04 +00:00
|
|
|
- '.gst_build_ccache_vars'
|
|
|
|
needs:
|
|
|
|
- "manifest"
|
2018-11-21 15:24:00 +00:00
|
|
|
variables:
|
2020-04-21 08:54:04 +00:00
|
|
|
MESON_ARGS: *simple_build
|
|
|
|
|
2018-11-21 15:24:00 +00:00
|
|
|
# Disable colored output to avoid weird rendering issues
|
2019-03-27 19:44:36 +00:00
|
|
|
GST_DEBUG_NO_COLOR: "true"
|
|
|
|
CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/validate-logs/"
|
|
|
|
GST_VALIDATE_LAUNCHER_FORCE_COLORS: "true"
|
2019-11-19 13:47:38 +00:00
|
|
|
TIMEOUT_FACTOR: "2"
|
2020-01-15 05:59:01 +00:00
|
|
|
CARGO_HOME: "/cache/gstreamer/cargo"
|
2020-09-15 13:38:39 +00:00
|
|
|
# Enable the fault handler so we get backtraces on segfaults.
|
|
|
|
# any non-empty string will do
|
|
|
|
PYTHONFAULTHANDLER: "enabled"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-examples|gst-docs)$/'
|
2018-11-21 15:24:00 +00:00
|
|
|
script:
|
2020-04-21 08:54:04 +00:00
|
|
|
- *gst_build
|
|
|
|
|
2019-04-17 14:06:32 +00:00
|
|
|
- echo "-> Running ${TEST_SUITE}"
|
2018-11-21 15:24:00 +00:00
|
|
|
- >
|
|
|
|
./gst-uninstalled.py
|
|
|
|
gst-validate-launcher ${TEST_SUITE}
|
2019-04-07 13:49:14 +00:00
|
|
|
--dump-on-failure
|
2018-11-21 15:24:00 +00:00
|
|
|
--mute
|
|
|
|
--shuffle
|
|
|
|
--no-display
|
|
|
|
--meson-no-rebuild
|
2019-11-19 13:47:38 +00:00
|
|
|
--timeout-factor "${TIMEOUT_FACTOR}"
|
2019-03-27 19:44:36 +00:00
|
|
|
--fail-on-testlist-change
|
|
|
|
-l "${CI_PROJECT_DIR}/validate-logs/"
|
|
|
|
--xunit-file "${CI_PROJECT_DIR}/validate-logs/xunit.xml"
|
2019-03-06 19:01:48 +00:00
|
|
|
${EXTRA_VALIDATE_ARGS}
|
2020-04-27 12:39:45 +00:00
|
|
|
after_script:
|
|
|
|
- mv gst-build/build/meson-logs/ meson-logs
|
|
|
|
# Cleanup everything else to reduce the size
|
|
|
|
# of the docker volume we leave behind
|
|
|
|
- rm -rf gst-build
|
2018-11-21 15:24:00 +00:00
|
|
|
artifacts:
|
2018-12-14 12:09:10 +00:00
|
|
|
expire_in: '14 days'
|
2018-11-21 15:24:00 +00:00
|
|
|
when: always
|
|
|
|
paths:
|
2020-04-27 12:39:45 +00:00
|
|
|
- 'meson-logs/'
|
2019-03-27 19:44:36 +00:00
|
|
|
- 'validate-logs'
|
2020-04-21 08:54:04 +00:00
|
|
|
- 'manifest.xml'
|
2018-11-21 15:24:00 +00:00
|
|
|
reports:
|
|
|
|
junit:
|
2019-03-27 19:44:36 +00:00
|
|
|
- "validate-logs/*.xml"
|
2018-11-21 15:24:00 +00:00
|
|
|
|
|
|
|
.test fedora x86_64:
|
2019-01-08 06:13:07 +00:00
|
|
|
image: $FEDORA_IMAGE
|
2018-11-21 15:24:00 +00:00
|
|
|
extends: '.test'
|
2019-11-07 10:51:29 +00:00
|
|
|
tags: ['gstreamer']
|
2018-11-21 15:24:00 +00:00
|
|
|
|
|
|
|
check fedora:
|
|
|
|
extends: '.test fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst*"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-07-01 15:34:07 +00:00
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs)$/'
|
2018-11-21 15:24:00 +00:00
|
|
|
|
2019-03-27 19:44:36 +00:00
|
|
|
integration testsuites fedora:
|
|
|
|
extends: '.test fedora x86_64'
|
2020-01-12 04:09:04 +00:00
|
|
|
parallel: 4
|
2019-03-27 19:44:36 +00:00
|
|
|
variables:
|
2020-01-12 04:09:04 +00:00
|
|
|
EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs --parts=${CI_NODE_TOTAL} --part-index=${CI_NODE_INDEX}"
|
2019-03-27 19:44:36 +00:00
|
|
|
TEST_SUITE: "validate ges"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-07-26 10:01:06 +00:00
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-examples|gst-omx|gstreamer-sharp|gst-plugins-rs)$/'
|
2019-03-27 19:44:36 +00:00
|
|
|
|
2021-04-29 12:19:57 +00:00
|
|
|
# gstreamer-full:
|
|
|
|
# introspection has been disabled as the static build does not support it.
|
|
|
|
# See https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/162
|
2019-12-16 21:04:53 +00:00
|
|
|
gstreamer-full:
|
|
|
|
extends: 'build static fedora x86_64'
|
|
|
|
stage: integrate
|
|
|
|
variables:
|
2020-03-16 19:48:41 +00:00
|
|
|
MESON_ARGS: >
|
2019-12-16 21:04:53 +00:00
|
|
|
--default-library=static
|
2021-04-29 12:19:57 +00:00
|
|
|
-Dintrospection=disabled
|
2019-09-30 04:44:10 +00:00
|
|
|
$MESON_GST_WERROR
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gst-build|gst-ci)$/'
|
|
|
|
|
2020-10-09 12:11:31 +00:00
|
|
|
script:
|
|
|
|
- *gst_build
|
|
|
|
- meson test -C build -v test-gst-full
|
2020-03-16 19:48:41 +00:00
|
|
|
artifacts:
|
2020-03-26 11:50:03 +00:00
|
|
|
expire_in: "7 days"
|
|
|
|
when: "always"
|
2020-03-16 19:48:41 +00:00
|
|
|
paths:
|
2020-10-09 12:11:31 +00:00
|
|
|
- 'meson-logs/'
|
2019-12-16 21:04:53 +00:00
|
|
|
|
2020-10-09 12:11:31 +00:00
|
|
|
gstreamer-full-minimal:
|
|
|
|
extends: 'build static fedora x86_64'
|
|
|
|
stage: integrate
|
|
|
|
variables:
|
|
|
|
MESON_ARGS: >
|
|
|
|
--default-library=static
|
|
|
|
-Dauto_features=disabled
|
|
|
|
-Dgstreamer:check=enabled
|
|
|
|
-Dtests=enabled
|
|
|
|
-Dgst-plugins-base:alsa=enabled
|
|
|
|
-Dgst-plugins-base:typefind=enabled
|
|
|
|
-Dgst-plugins-base:pbtypes=enabled
|
|
|
|
-Dgst-full-elements=coreelements:filesrc,fakesink,identity,input-selector
|
|
|
|
-Dgst-full-typefind-functions=typefindfunctions:wav,flv
|
|
|
|
-Dgst-full-device-providers=alsa:alsadeviceprovider
|
|
|
|
-Dgst-full-dynamic-types=pbtypes:video_multiview_flagset
|
|
|
|
$MESON_GST_WERROR
|
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gst-build|gst-ci)$/'
|
|
|
|
|
|
|
|
script:
|
|
|
|
- *gst_build
|
|
|
|
- meson test -C build -v test-gst-full
|
|
|
|
- meson test -C build test-gst-full-features --test-args "-e filesrc,identity,fakesink -E filesink,capsfilter -t audio/x-wav -T video/vivo -d alsadeviceprovider -D v4l2deviceprovider -l GstVideoMultiviewFlagsSet"
|
|
|
|
- strip build/libgstreamer-full-1.0.so
|
|
|
|
- ls -l build/libgstreamer-full-1.0.so
|
|
|
|
artifacts:
|
|
|
|
expire_in: "7 days"
|
|
|
|
when: "always"
|
|
|
|
paths:
|
|
|
|
- 'meson-logs/'
|
|
|
|
|
2019-03-06 19:01:48 +00:00
|
|
|
# Valgrind
|
|
|
|
.valgrind fedora x86_64:
|
|
|
|
extends: '.test fedora x86_64'
|
2019-06-12 05:38:14 +00:00
|
|
|
stage: 'test'
|
2019-03-06 19:01:48 +00:00
|
|
|
variables:
|
2019-04-17 14:06:32 +00:00
|
|
|
EXTRA_VALIDATE_ARGS: "--valgrind"
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind core:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gstreamer\\..*"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-05-26 21:38:45 +00:00
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-ci|gst-devtools)$/'
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind base:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-plugins-base\\..*"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-05-26 21:38:45 +00:00
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-ci|gst-devtools)$/'
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind good:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-plugins-good\\..*"
|
2020-03-28 08:40:18 +00:00
|
|
|
# take longer time due to splitmux unit test
|
|
|
|
TIMEOUT_FACTOR: "4"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-05-26 21:38:45 +00:00
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-ci|gst-devtools)$/'
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind ugly:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-plugins-ugly\\..*"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-05-26 21:38:45 +00:00
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-ugly|gst-ci|gst-devtools)$/'
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind bad:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-plugins-bad\\..*"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-05-26 21:38:45 +00:00
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-bad|gst-ci|gst-devtools)$/'
|
2019-03-06 19:01:48 +00:00
|
|
|
|
2019-04-12 22:26:38 +00:00
|
|
|
valgrind ges:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-editing-services\\..*"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-editing-services|gst-ci|gst-devtools)$/'
|
2019-03-06 19:01:48 +00:00
|
|
|
|
2018-11-16 02:47:34 +00:00
|
|
|
# Template for Cerbero GStreamer Build
|
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
# CONFIG: The name of the configuration file to use
|
2019-04-01 02:24:46 +00:00
|
|
|
# ARCH: The cerbero <os>_<cpu> (used in cache key)
|
2018-11-16 02:47:34 +00:00
|
|
|
#
|
|
|
|
.cerbero:
|
2019-06-12 05:38:14 +00:00
|
|
|
stage: "build"
|
2018-12-18 02:58:39 +00:00
|
|
|
image: $CERBERO_IMAGE
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME == "cerbero"'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
|
|
|
- "manifest"
|
2019-12-11 15:34:19 +00:00
|
|
|
# Ensure that the runners it will be executed on
|
|
|
|
# will have plenty of space for the cache
|
|
|
|
tags: ['gstreamer']
|
2019-11-28 12:59:30 +00:00
|
|
|
timeout: '3h'
|
2018-11-16 02:47:34 +00:00
|
|
|
variables:
|
2019-11-25 13:51:52 +00:00
|
|
|
CCACHE_COMPILERCHECK: "content"
|
|
|
|
CCACHE_COMPRESS: "true"
|
|
|
|
CCACHE_BASEDIR: "/cache/gstreamer/cerbero/"
|
|
|
|
CCACHE_DIR: "/cache/gstreamer/cerbero/ccache/"
|
|
|
|
# shared across everything really
|
|
|
|
CCACHE_MAXSIZE: "50G"
|
|
|
|
|
2019-04-01 02:24:46 +00:00
|
|
|
CERBERO_HOME: "cerbero-build"
|
|
|
|
CERBERO_SOURCES: "cerbero-sources"
|
2019-03-11 09:12:01 +00:00
|
|
|
CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS}"
|
|
|
|
CERBERO: "./cerbero-uninstalled -c config/${CONFIG} -c localconf.cbc -m manifest.xml"
|
2019-04-01 02:24:46 +00:00
|
|
|
CERBERO_PACKAGE_ARGS: "-t"
|
2020-02-02 21:02:53 +00:00
|
|
|
CERBERO_RUN_WRAPPER: "" # 'wine' on cross-winXX
|
|
|
|
CERBERO_RUN_SUFFIX: "" # '.exe' on cross-winXX
|
2019-04-01 02:24:46 +00:00
|
|
|
HAVE_CCACHE: "yes"
|
|
|
|
# used by macos packages as we only ever install to a fixed directory
|
|
|
|
CERBERO_OVERRIDDEN_DIST_DIR: ""
|
2020-09-21 18:34:08 +00:00
|
|
|
# location where the cerbero git repo is stored on the image
|
2019-11-28 01:55:51 +00:00
|
|
|
CERBERO_HOST_DIR: "/cerbero/"
|
2018-11-16 02:47:34 +00:00
|
|
|
before_script:
|
2020-09-17 11:06:59 +00:00
|
|
|
- echo "Fetching ${CERBERO_SCRIPT_URL}"
|
2020-10-02 17:10:30 +00:00
|
|
|
- curl -L -o cerbero_setup.sh "${CERBERO_SCRIPT_URL}"
|
|
|
|
- chmod +x cerbero_setup.sh
|
|
|
|
- ./cerbero_setup.sh cerbero_before_script
|
2018-11-16 02:47:34 +00:00
|
|
|
script:
|
2020-10-02 17:10:30 +00:00
|
|
|
- ./cerbero_setup.sh cerbero_script
|
2018-11-16 02:47:34 +00:00
|
|
|
cache:
|
2018-12-18 02:58:39 +00:00
|
|
|
key: "${CI_JOB_NAME}"
|
2018-11-16 02:47:34 +00:00
|
|
|
paths:
|
|
|
|
- "${CERBERO_SOURCES}"
|
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
|
2018-12-14 12:09:10 +00:00
|
|
|
expire_in: '5 days'
|
2018-11-16 02:47:34 +00:00
|
|
|
when: 'always'
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
2019-04-01 02:24:46 +00:00
|
|
|
- "${CERBERO_HOME}/logs"
|
2019-06-20 08:52:17 +00:00
|
|
|
- "*.tar.*"
|
2018-11-16 02:47:34 +00:00
|
|
|
|
2018-11-25 18:38:06 +00:00
|
|
|
.build windows:
|
2019-07-01 15:55:46 +00:00
|
|
|
image: $WINDOWS_IMAGE
|
2018-11-25 18:38:06 +00:00
|
|
|
stage: 'build'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
|
|
|
- 'manifest'
|
2018-11-25 18:38:06 +00:00
|
|
|
tags:
|
|
|
|
- 'docker'
|
|
|
|
- 'windows'
|
2019-12-02 16:23:27 +00:00
|
|
|
- '1809'
|
|
|
|
timeout: '45min'
|
2018-11-25 18:38:06 +00:00
|
|
|
variables:
|
|
|
|
MESON_ARGS: >
|
|
|
|
${DEFAULT_MESON_ARGS}
|
|
|
|
-Dpython=disabled
|
|
|
|
-Dlibav=disabled
|
|
|
|
-Dvaapi=disabled
|
2020-10-01 18:44:14 +00:00
|
|
|
-Dgst-plugins-base:pango=enabled
|
2020-11-16 13:10:28 +00:00
|
|
|
-Dgst-plugins-good:cairo=enabled
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs|gstreamer-vaapi)$/'
|
2018-11-25 18:38:06 +00:00
|
|
|
script:
|
2020-02-25 12:01:45 +00:00
|
|
|
# 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?
|
|
|
|
# So let's always check and clear it out if its there
|
|
|
|
# https://gitlab.freedesktop.org/tpm/gstreamer-sharp/-/jobs/1672137
|
|
|
|
- if (Test-Path $env:CI_PROJECT_DIR/gst-build) { Remove-Item -Recurse -Force $env:CI_PROJECT_DIR/gst-build }
|
|
|
|
|
2019-12-04 22:52:45 +00:00
|
|
|
# Make sure powershell exists on errors
|
|
|
|
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
|
|
|
|
- $ErrorActionPreference = "Stop"
|
|
|
|
|
2020-05-29 11:30:26 +00:00
|
|
|
- Invoke-WebRequest -Uri "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/$env:GST_UPSTREAM_BRANCH/gitlab/clone_manifest_ref.py" -OutFile $env:CI_PROJECT_DIR/clone_manifest_ref.py
|
|
|
|
- python clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination $env:CI_PROJECT_DIR/gst-build
|
2019-07-01 15:55:46 +00:00
|
|
|
- cd $env:CI_PROJECT_DIR/gst-build
|
2020-05-29 11:30:26 +00:00
|
|
|
|
2020-12-16 15:23:15 +00:00
|
|
|
# Update meson
|
|
|
|
# FIXME: remove this once the windows image is rebuilt/updated
|
|
|
|
- pip install -U meson==0.56.2
|
|
|
|
|
2019-07-01 15:55:46 +00:00
|
|
|
- cp -r C:/subprojects/* subprojects/
|
2020-12-16 15:23:15 +00:00
|
|
|
- cd $env:CI_PROJECT_DIR/gst-build
|
|
|
|
# Reset the subprojects to invalidate the cache if needed
|
|
|
|
- meson subprojects update --reset
|
2019-12-02 16:23:27 +00:00
|
|
|
# Run the git-update script and feed it the manifest to setup the environment
|
2020-12-16 15:23:15 +00:00
|
|
|
- python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml
|
|
|
|
|
2018-11-25 18:38:06 +00:00
|
|
|
# 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"," ")
|
|
|
|
# Gitlab executes PowerShell in docker, but VsDevCmd.bat is a batch script.
|
|
|
|
# Environment variables substitutions is done by PowerShell before calling
|
|
|
|
# cmd.exe, that's why we use $env:FOO instead of %FOO%
|
|
|
|
- cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
|
|
|
|
meson build $env:MESON_ARGS &&
|
|
|
|
ninja -C build"
|
2020-12-23 02:46:19 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: "7 days"
|
|
|
|
when: "always"
|
|
|
|
paths:
|
|
|
|
- 'gst-build/build/meson-logs/'
|
2018-11-25 18:38:06 +00:00
|
|
|
|
|
|
|
build vs2017 amd64:
|
|
|
|
extends: '.build windows'
|
|
|
|
variables:
|
|
|
|
ARCH: 'amd64'
|
|
|
|
|
|
|
|
build vs2017 x86:
|
|
|
|
extends: '.build windows'
|
|
|
|
variables:
|
|
|
|
ARCH: 'x86'
|
|
|
|
|
|
|
|
build msys2 :
|
|
|
|
extends: '.build windows'
|
2019-12-05 00:37:20 +00:00
|
|
|
timeout: '60min'
|
2020-04-23 13:55:01 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-docs|gst-integration-testsuites|gst-omx|gst-plugins-rs|gstreamer-vaapi)$/'
|
|
|
|
allow_failure: true
|
|
|
|
when: 'manual'
|
2018-11-25 18:38:06 +00:00
|
|
|
script:
|
2020-02-25 12:01:45 +00:00
|
|
|
# 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?
|
|
|
|
# So let's always check and clear it out if its there
|
|
|
|
# https://gitlab.freedesktop.org/tpm/gstreamer-sharp/-/jobs/1672137
|
|
|
|
- if (Test-Path $env:CI_PROJECT_DIR/gst-build) { Remove-Item -Recurse -Force $env:CI_PROJECT_DIR/gst-build }
|
|
|
|
|
2019-12-04 22:52:45 +00:00
|
|
|
# Make sure powershell exists on errors
|
|
|
|
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_preference_variables?view=powershell-6
|
|
|
|
- $ErrorActionPreference = "Stop"
|
|
|
|
|
2019-12-02 16:23:27 +00:00
|
|
|
# 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'
|
2020-06-30 12:16:33 +00:00
|
|
|
# Copied from https://github.com/msys2/setup-msys2/blob/master/main.js#L98
|
2019-12-02 16:23:27 +00:00
|
|
|
- C:\msys64\usr\bin\bash -c "pacman-key --init && pacman-key --populate msys2 && pacman-key --refresh-keys || true"
|
2020-06-30 12:16:33 +00:00
|
|
|
- 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"
|
2019-12-02 16:23:27 +00:00
|
|
|
- C:\msys64\usr\bin\bash -c "pacman -Sy --noconfirm --needed mingw-w64-x86_64-toolchain ninja"
|
|
|
|
|
2020-05-29 11:30:26 +00:00
|
|
|
- Invoke-WebRequest -Uri "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/$env:GST_UPSTREAM_BRANCH/gitlab/clone_manifest_ref.py" -OutFile $env:CI_PROJECT_DIR/clone_manifest_ref.py
|
|
|
|
- python clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination $env:CI_PROJECT_DIR/gst-build
|
|
|
|
- cd $env:CI_PROJECT_DIR/gst-build
|
|
|
|
|
2019-12-02 16:23:27 +00:00
|
|
|
- cp -r C:\subprojects\* subprojects\
|
|
|
|
|
|
|
|
# Run the git-update script and feed it the manifest to setup the environment
|
2019-12-04 22:49:40 +00:00
|
|
|
- cd $env:CI_PROJECT_DIR/gst-build; python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml
|
2018-11-25 18:38:06 +00:00
|
|
|
# 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"," ")
|
2019-12-02 16:23:27 +00:00
|
|
|
# Replace forward slashes with backwards so bash doesn't complain
|
|
|
|
- $env:_PROJECT_DIR = $env:CI_PROJECT_DIR.replace('\','/')
|
|
|
|
- C:\msys64\usr\bin\bash -c "cd $env:_PROJECT_DIR/gst-build &&
|
2018-11-25 18:38:06 +00:00
|
|
|
meson build $env:MESON_ARGS &&
|
|
|
|
ninja -C build"
|
|
|
|
|
|
|
|
|
2018-11-16 02:47:34 +00:00
|
|
|
# Template for Cerbero GStreamer Deps
|
|
|
|
#
|
|
|
|
# This template is used by cerbero/ project to pre-built the GStreamer
|
2019-08-27 23:30:49 +00:00
|
|
|
# dependencies. When available, the .cerbero jobs will download this artifact
|
2018-11-16 02:47:34 +00:00
|
|
|
# in order to speed up the build.
|
|
|
|
#
|
|
|
|
# Parameters:
|
|
|
|
# CONFIG: The name of the configuration file to use
|
2019-01-08 18:22:02 +00:00
|
|
|
# ARCH: The cerbero <os>_<cpu> (used in cache key)
|
2018-11-16 02:47:34 +00:00
|
|
|
#
|
2018-12-18 02:58:39 +00:00
|
|
|
# Produce an artifact with the dist/ and .cache along
|
2018-11-16 02:47:34 +00:00
|
|
|
# with the associated build-tools.
|
|
|
|
.cerbero deps:
|
|
|
|
extends: .cerbero
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME == "cerbero"'
|
2018-11-16 02:47:34 +00:00
|
|
|
script:
|
2020-10-02 17:10:30 +00:00
|
|
|
- ./cerbero_setup.sh cerbero_deps_script
|
2018-11-16 02:47:34 +00:00
|
|
|
|
2018-12-18 02:58:39 +00:00
|
|
|
#
|
|
|
|
# Cerbero Linux X86_64 build
|
|
|
|
#
|
2019-03-13 01:33:58 +00:00
|
|
|
cerbero deps fedora x86_64:
|
|
|
|
extends: '.cerbero deps'
|
2018-11-16 02:47:34 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "linux.config"
|
2019-03-13 01:33:58 +00:00
|
|
|
ARCH: "linux_x86_64"
|
2018-11-16 02:47:34 +00:00
|
|
|
|
2018-12-09 23:19:06 +00:00
|
|
|
build cerbero fedora x86_64:
|
2020-06-09 19:40:45 +00:00
|
|
|
extends: '.cerbero'
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
|
2020-06-09 19:40:45 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "linux.config"
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2018-12-18 02:58:39 +00:00
|
|
|
#
|
|
|
|
# Cerbero Android Universal build
|
|
|
|
#
|
2019-09-11 07:45:21 +00:00
|
|
|
.cerbero cross-android universal:
|
2018-12-18 02:58:39 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "cross-android-universal.cbc"
|
2020-06-09 19:40:45 +00:00
|
|
|
ARCH: "android_universal"
|
2020-03-04 00:46:50 +00:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
|
|
|
|
expire_in: '5 days'
|
|
|
|
when: 'always'
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
|
|
|
- "${CERBERO_HOME}/logs"
|
2019-06-20 08:52:17 +00:00
|
|
|
- "*[0-9].tar.*"
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2020-06-09 19:40:45 +00:00
|
|
|
cerbero deps cross-android universal:
|
|
|
|
extends:
|
|
|
|
- '.cerbero deps'
|
|
|
|
- '.cerbero cross-android universal'
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
build cerbero cross-android universal:
|
2020-06-09 19:40:45 +00:00
|
|
|
extends:
|
|
|
|
- '.cerbero'
|
|
|
|
- '.cerbero cross-android universal'
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-10-08 10:57:36 +00:00
|
|
|
- if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
|
2020-03-25 18:00:20 +00:00
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2018-12-18 02:58:39 +00:00
|
|
|
#
|
|
|
|
# Cerbero Cross Windows builds
|
|
|
|
#
|
2019-09-10 09:08:18 +00:00
|
|
|
cerbero deps cross-windows x86:
|
2019-03-13 01:33:58 +00:00
|
|
|
extends: '.cerbero deps'
|
2018-12-18 02:58:39 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "cross-win32.cbc"
|
2020-03-02 09:09:43 +00:00
|
|
|
ARCH: "mingw_x86"
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2020-06-09 19:40:45 +00:00
|
|
|
build cerbero cross win32:
|
2019-03-13 01:33:58 +00:00
|
|
|
extends: '.cerbero'
|
2020-06-09 19:40:45 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
|
2018-12-18 02:58:39 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "cross-win32.cbc"
|
2020-02-02 21:02:53 +00:00
|
|
|
CERBERO_RUN_WRAPPER: "wine"
|
|
|
|
CERBERO_RUN_SUFFIX: ".exe"
|
2019-03-13 01:33:58 +00:00
|
|
|
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2019-09-10 09:08:18 +00:00
|
|
|
cerbero deps cross-windows x86_64:
|
2019-03-13 01:33:58 +00:00
|
|
|
extends: '.cerbero deps'
|
2018-12-18 02:58:39 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "cross-win64.cbc"
|
2020-03-02 09:09:43 +00:00
|
|
|
ARCH: "mingw_x86_64"
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2020-06-09 19:40:45 +00:00
|
|
|
build cerbero cross win64:
|
2019-03-13 01:33:58 +00:00
|
|
|
extends: '.cerbero'
|
2020-06-09 19:40:45 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
|
2018-12-18 02:58:39 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "cross-win64.cbc"
|
2020-02-02 21:02:53 +00:00
|
|
|
CERBERO_RUN_WRAPPER: "wine"
|
|
|
|
CERBERO_RUN_SUFFIX: ".exe"
|
2019-03-13 01:33:58 +00:00
|
|
|
|
2019-03-24 06:56:01 +00:00
|
|
|
#
|
|
|
|
# Build an Android App using the android binaries
|
|
|
|
#
|
2019-09-11 07:45:21 +00:00
|
|
|
.cross-android universal examples:
|
2019-03-24 06:56:01 +00:00
|
|
|
image: $ANDROID_IMAGE
|
2019-06-12 05:38:14 +00:00
|
|
|
stage: 'integrate'
|
2019-03-24 06:56:01 +00:00
|
|
|
variables:
|
|
|
|
EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
|
|
|
|
GSTREAMER_ROOT_ANDROID: ${CI_PROJECT_DIR}/examples/cerbero-android-universal
|
|
|
|
script:
|
2019-03-28 01:15:18 +00:00
|
|
|
- mkdir -p ${EXAMPLES_HOME}/outputs
|
2020-04-19 18:30:43 +00:00
|
|
|
- curl -L -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
|
2019-03-24 06:56:01 +00:00
|
|
|
- chmod +x clone_manifest_ref.py
|
|
|
|
- ./clone_manifest_ref.py --manifest manifest.xml --project gst-examples --destination ${EXAMPLES_HOME}/gst-examples
|
2019-03-28 00:25:05 +00:00
|
|
|
- ./clone_manifest_ref.py --manifest manifest.xml --project gst-docs --destination ${EXAMPLES_HOME}/gst-docs
|
2019-03-24 06:56:01 +00:00
|
|
|
- rm clone_manifest_ref.py
|
|
|
|
|
|
|
|
# extract our binaries
|
2020-07-10 16:59:37 +00:00
|
|
|
- rm -f gstreamer-1.0-android-universal-*-runtime.tar.*
|
2019-03-24 06:56:01 +00:00
|
|
|
- mkdir ${GSTREAMER_ROOT_ANDROID}
|
2020-07-10 16:59:37 +00:00
|
|
|
- time tar -C ${GSTREAMER_ROOT_ANDROID} -xf gstreamer-1.0-android-universal-*.tar.*
|
2019-03-24 06:56:01 +00:00
|
|
|
|
2020-05-08 08:22:34 +00:00
|
|
|
# gst-examples - player
|
2019-03-24 06:56:01 +00:00
|
|
|
- chmod +x ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew
|
2020-05-08 09:39:09 +00:00
|
|
|
- ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-examples/playback/player/android assembleDebug
|
2019-03-28 01:15:18 +00:00
|
|
|
- cp ${EXAMPLES_HOME}/gst-examples/playback/player/android/app/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
|
|
|
|
|
2020-05-08 08:22:34 +00:00
|
|
|
# gst-examples - vulkan
|
|
|
|
- chmod +x ${EXAMPLES_HOME}/gst-examples/vulkan/android/gradlew
|
2020-05-08 09:39:09 +00:00
|
|
|
- ${EXAMPLES_HOME}/gst-examples/vulkan/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-examples/vulkan/android assembleDebug
|
2020-05-08 08:22:34 +00:00
|
|
|
- cp ${EXAMPLES_HOME}/gst-examples/vulkan/android/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
|
|
|
|
|
2019-03-28 01:15:18 +00:00
|
|
|
# gst-docs android tutorials
|
2019-03-28 00:25:05 +00:00
|
|
|
- chmod +x ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew
|
2020-05-08 09:39:09 +00:00
|
|
|
- ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew --no-daemon --project-dir ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android assembleDebug
|
2019-03-28 01:15:18 +00:00
|
|
|
- cp ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/android-tutorial-*/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
|
2019-03-24 06:56:01 +00:00
|
|
|
after_script:
|
|
|
|
- rm -rf ${GSTREAMER_ROOT_ANDROID}
|
2019-03-28 01:15:18 +00:00
|
|
|
- rm -rf ${EXAMPLES_HOME}/gst-examples ${EXAMPLES_HOME}/gst-docs
|
2019-03-24 06:56:01 +00:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
|
|
|
|
expire_in: '5 days'
|
|
|
|
when: 'always'
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
2019-03-28 01:15:18 +00:00
|
|
|
- "${EXAMPLES_HOME}/outputs"
|
2019-03-24 06:56:01 +00:00
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
cross-android universal examples:
|
|
|
|
extends: ".cross-android universal examples"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-10-08 10:57:36 +00:00
|
|
|
- if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
|
2020-03-25 18:00:20 +00:00
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "build cerbero cross-android universal"
|
2019-03-24 06:56:01 +00:00
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
cerbero cross-android universal examples:
|
|
|
|
extends: ".cross-android universal examples"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME == "cerbero"'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2020-06-09 19:40:45 +00:00
|
|
|
- "cerbero deps cross-android universal"
|
2019-05-14 16:03:49 +00:00
|
|
|
|
2019-04-01 02:24:46 +00:00
|
|
|
#
|
|
|
|
# Cerbero macOS X86_64 build
|
|
|
|
#
|
|
|
|
.cerbero macos x86_64:
|
|
|
|
variables:
|
|
|
|
ARCH: "darwin_x86_64"
|
|
|
|
CONFIG: "osx-x86-64.cbc"
|
|
|
|
CERBERO_PACKAGE_ARGS: ""
|
|
|
|
HAVE_CCACHE: ""
|
|
|
|
CERBERO_OVERRIDDEN_DIST_DIR: "/Library/Frameworks/GStreamer.framework/Versions/1.0"
|
2019-11-28 01:55:51 +00:00
|
|
|
CERBERO_HOST_DIR: "/Users/gst-ci/cerbero/"
|
2019-04-01 02:24:46 +00:00
|
|
|
tags:
|
2021-01-15 12:29:33 +00:00
|
|
|
- gst-macos-11.1
|
2019-04-01 02:24:46 +00:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
|
|
|
|
expire_in: '5 days'
|
|
|
|
when: 'always'
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
|
|
|
- "${CERBERO_HOME}/logs"
|
|
|
|
- "gstreamer-1.0-1.*.pkg"
|
|
|
|
- "gstreamer-1.0-devel-1.*.pkg"
|
|
|
|
|
2020-06-09 19:40:45 +00:00
|
|
|
cerbero deps macos x86_64:
|
|
|
|
extends:
|
|
|
|
- '.cerbero deps'
|
|
|
|
- '.cerbero macos x86_64'
|
2019-04-01 02:24:46 +00:00
|
|
|
|
|
|
|
build cerbero macos x86_64:
|
2020-06-09 19:40:45 +00:00
|
|
|
extends:
|
|
|
|
- '.cerbero'
|
|
|
|
- '.cerbero macos x86_64'
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
|
2019-04-01 02:24:46 +00:00
|
|
|
|
2021-02-17 05:32:38 +00:00
|
|
|
#
|
|
|
|
# Cerbero macOS Universal build
|
|
|
|
#
|
|
|
|
.cerbero cross-macos universal:
|
|
|
|
variables:
|
|
|
|
ARCH: "darwin_universal"
|
|
|
|
CONFIG: "cross-macos-universal.cbc"
|
|
|
|
CERBERO_PACKAGE_ARGS: ""
|
|
|
|
HAVE_CCACHE: ""
|
|
|
|
CERBERO_HOST_DIR: "/Users/gst-ci/cerbero/"
|
|
|
|
tags:
|
|
|
|
- gst-macos-11.1
|
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
|
|
|
|
expire_in: '5 days'
|
|
|
|
when: 'always'
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
|
|
|
- "${CERBERO_HOME}/logs"
|
|
|
|
- "gstreamer-1.0-1.*.pkg"
|
|
|
|
- "gstreamer-1.0-devel-1.*.pkg"
|
|
|
|
|
|
|
|
cerbero deps cross-macos universal:
|
|
|
|
extends:
|
|
|
|
- '.cerbero deps'
|
|
|
|
- '.cerbero cross-macos universal'
|
|
|
|
|
|
|
|
build cerbero cross-macos universal:
|
|
|
|
extends:
|
|
|
|
- '.cerbero'
|
|
|
|
- '.cerbero cross-macos universal'
|
2021-07-29 12:41:06 +00:00
|
|
|
script:
|
|
|
|
# We have build-tools that have fixed paths pointing to the upstream
|
|
|
|
# repository. We need to point
|
|
|
|
- pwd
|
|
|
|
- mkdir -p "../../gstreamer"
|
|
|
|
- ln -sf "$(pwd)" "../../gstreamer/cerbero"
|
|
|
|
- mkdir -p "../../${CI_PROJECT_NAMESPACE}"
|
|
|
|
- ln -sf "$(pwd)" "../../${CI_PROJECT_NAMESPACE}/cerbero"
|
|
|
|
|
2021-09-07 12:47:09 +00:00
|
|
|
- ./cerbero_setup.sh cerbero_script
|
2021-02-17 05:32:38 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
|
|
|
|
|
2019-06-02 07:17:04 +00:00
|
|
|
#
|
|
|
|
# Cerbero iOS build
|
|
|
|
#
|
2019-09-11 07:45:21 +00:00
|
|
|
.cerbero cross-ios universal:
|
2019-06-02 07:17:04 +00:00
|
|
|
variables:
|
|
|
|
ARCH: "ios_universal"
|
|
|
|
CONFIG: "cross-ios-universal.cbc"
|
|
|
|
CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v nowerror"
|
|
|
|
CERBERO_PACKAGE_ARGS: ""
|
|
|
|
HAVE_CCACHE: ""
|
2019-11-28 01:55:51 +00:00
|
|
|
CERBERO_HOST_DIR: "/Users/gst-ci/cerbero/"
|
2019-06-02 07:17:04 +00:00
|
|
|
tags:
|
2021-01-15 12:29:33 +00:00
|
|
|
- gst-ios-14.3
|
2019-06-02 07:17:04 +00:00
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
|
|
|
|
expire_in: '5 days'
|
|
|
|
when: 'always'
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
|
|
|
- "${CERBERO_HOME}/logs"
|
|
|
|
- "gstreamer-1.0-*-ios-universal.pkg"
|
|
|
|
|
2020-06-09 19:40:45 +00:00
|
|
|
cerbero deps cross-ios universal:
|
|
|
|
extends:
|
|
|
|
- '.cerbero deps'
|
|
|
|
- '.cerbero cross-ios universal'
|
2019-06-02 07:17:04 +00:00
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
build cerbero cross-ios universal:
|
2020-06-09 19:40:45 +00:00
|
|
|
extends:
|
|
|
|
- '.cerbero'
|
|
|
|
- '.cerbero cross-ios universal'
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-10-08 10:57:36 +00:00
|
|
|
- if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
|
2020-03-18 01:58:54 +00:00
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gst-sharp|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
|
2019-06-02 07:17:04 +00:00
|
|
|
|
2019-05-14 16:03:49 +00:00
|
|
|
documentation:
|
2020-07-23 12:16:55 +00:00
|
|
|
image: $FEDORA_DOCS_IMAGE
|
2019-09-11 14:39:14 +00:00
|
|
|
extends:
|
2020-04-21 08:54:04 +00:00
|
|
|
- '.gst_build_ccache_vars'
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
2020-07-01 15:32:26 +00:00
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-integration-testsuites|gst-plugins-rs|gst-python)$/'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2020-04-21 08:54:04 +00:00
|
|
|
- "manifest"
|
2019-06-12 05:38:14 +00:00
|
|
|
stage: integrate
|
2020-04-21 08:54:04 +00:00
|
|
|
variables:
|
|
|
|
MESON_ARGS: *simple_build
|
2020-06-04 02:33:50 +00:00
|
|
|
MESON_BUILDTYPE_ARGS: "-Ddoc=enabled"
|
2020-06-04 21:06:38 +00:00
|
|
|
CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/"
|
2019-05-14 16:03:49 +00:00
|
|
|
script:
|
2021-02-01 13:59:04 +00:00
|
|
|
- pip3 install --upgrade hotdoc
|
2020-09-15 13:58:40 +00:00
|
|
|
|
|
|
|
# FIXME: remove this once the docs image is updated
|
2020-12-16 15:22:40 +00:00
|
|
|
- pip3 install -U meson==0.56.2
|
2020-09-15 13:58:40 +00:00
|
|
|
|
2020-04-21 08:54:04 +00:00
|
|
|
- *gst_build
|
2020-06-04 21:06:38 +00:00
|
|
|
- ./gst-uninstalled.py ninja -C build/ plugins_doc_caches
|
|
|
|
- |
|
|
|
|
python3 -c "import os, subprocess, sys
|
|
|
|
subprojects = [os.environ['CI_PROJECT_NAME']]
|
2020-07-01 15:32:26 +00:00
|
|
|
if subprojects[0] in ['gst-ci', 'gst-build']:
|
2020-06-04 21:06:38 +00:00
|
|
|
subprojects = ['gstreamer', 'gst-plugins-ugly', 'gst-omx', 'gst-plugins-good', 'gst-plugins-base', 'gstreamer-vaapi', 'gst-libav', 'gst-editing-services', 'gst-rtsp-server', 'gst-plugins-bad',]
|
|
|
|
|
|
|
|
diffsdir = '../plugins-cache-diffs'
|
|
|
|
os.makedirs(diffsdir, exist_ok=True)
|
|
|
|
res = 0
|
|
|
|
for subproject in subprojects:
|
|
|
|
cwd = os.path.join('subprojects', subproject)
|
|
|
|
try:
|
|
|
|
subprocess.check_call(['git', 'diff', '--quiet'], cwd=cwd)
|
|
|
|
except subprocess.CalledProcessError:
|
|
|
|
diffname = os.path.join(diffsdir, '%s_cache.diff' % subproject)
|
|
|
|
res += 1
|
|
|
|
with open(diffname, 'w') as diff:
|
|
|
|
subprocess.check_call(['git', 'diff'], stdout=diff, cwd=cwd)
|
|
|
|
print('\033[91mYou have a diff in the %s documentation cache. Please update with:\033[0m' % subproject)
|
|
|
|
print(' $ curl %s/%s | git apply -' % (os.environ['CI_ARTIFACTS_URL'], diffname.replace('../', '')))
|
|
|
|
if res != 0:
|
|
|
|
print('(note that it might take a few minutes for artefacts to be available on the server)\n')
|
|
|
|
sys.exit(res)"
|
2020-04-21 08:54:04 +00:00
|
|
|
|
2019-05-14 16:03:49 +00:00
|
|
|
- ./gst-uninstalled.py hotdoc run --conf-file=build/subprojects/gst-docs/GStreamer-doc.json --fatal-warnings
|
|
|
|
- cd -
|
|
|
|
- mv gst-build/build/subprojects/gst-docs/GStreamer-doc/html documentation/
|
|
|
|
|
|
|
|
artifacts:
|
2020-06-04 21:06:38 +00:00
|
|
|
when: always
|
2019-05-14 16:03:49 +00:00
|
|
|
paths:
|
|
|
|
- documentation/
|
2020-06-04 21:06:38 +00:00
|
|
|
- plugins-cache-diffs/
|
2019-08-28 16:00:28 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Build an iOS App using the iOS binaries
|
|
|
|
#
|
2019-09-11 07:45:21 +00:00
|
|
|
.cross-ios universal examples:
|
2019-08-28 16:00:28 +00:00
|
|
|
stage: 'integrate'
|
|
|
|
variables:
|
|
|
|
EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
|
|
|
|
# disable codesigning so we don't need developer identities on the CI
|
|
|
|
# machines
|
|
|
|
XCODE_BUILD_ARGS: >
|
|
|
|
CODE_SIGNING_REQUIRED="NO"
|
|
|
|
CODE_SIGN_IDENTITY=""
|
|
|
|
CODE_SIGNING_ALLOWED="NO"
|
|
|
|
CODE_SIGN_ENTITLEMENTS=""
|
|
|
|
script:
|
|
|
|
# install the binaries
|
|
|
|
- installer -pkg gstreamer-1.0-devel-*-ios-universal.pkg -target CurrentUserHomeDirectory -verbose
|
|
|
|
|
2020-04-19 18:30:43 +00:00
|
|
|
- curl -L -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
|
2019-08-28 16:00:28 +00:00
|
|
|
- chmod +x clone_manifest_ref.py
|
|
|
|
- ./clone_manifest_ref.py --manifest manifest.xml --project gst-examples --destination ${EXAMPLES_HOME}/gst-examples
|
|
|
|
- ./clone_manifest_ref.py --manifest manifest.xml --project gst-docs --destination ${EXAMPLES_HOME}/gst-docs
|
|
|
|
- rm clone_manifest_ref.py
|
|
|
|
|
|
|
|
# dump some useful information
|
|
|
|
- xcodebuild -version
|
|
|
|
- xcodebuild -showsdks
|
|
|
|
|
|
|
|
# gst-docs ios tutorials
|
|
|
|
- xcodebuild -showBuildSettings -alltargets -project ${EXAMPLES_HOME}/gst-docs/examples/tutorials/xcode\ iOS/GStreamer\ iOS\ Tutorials.xcodeproj
|
|
|
|
- xcodebuild -alltargets -destination generic/platform=iOS -project ${EXAMPLES_HOME}/gst-docs/examples/tutorials/xcode\ iOS/GStreamer\ iOS\ Tutorials.xcodeproj ${XCODE_BUILD_ARGS}
|
|
|
|
|
|
|
|
# gst-examples
|
|
|
|
- xcodebuild -showBuildSettings -alltargets -project ${EXAMPLES_HOME}/gst-examples/playback/player/ios/GstPlay.xcodeproj
|
|
|
|
- xcodebuild -alltargets -destination generic/platform=iOS -project ${EXAMPLES_HOME}/gst-examples/playback/player/ios/GstPlay.xcodeproj ${XCODE_BUILD_ARGS}
|
|
|
|
after_script:
|
|
|
|
- rm -rf ${EXAMPLES_HOME}/gst-examples ${EXAMPLES_HOME}/gst-docs
|
|
|
|
tags:
|
2021-01-15 12:29:33 +00:00
|
|
|
- gst-ios-14.3
|
2019-08-28 16:00:28 +00:00
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
cross-ios universal examples:
|
|
|
|
extends: ".cross-ios universal examples"
|
2020-03-25 18:00:20 +00:00
|
|
|
rules:
|
2020-10-08 10:57:36 +00:00
|
|
|
- if: '$CI_MERGE_REQUEST_IID && $CI_PROJECT_NAME == "gst-docs"'
|
2020-03-25 18:00:20 +00:00
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-docs|gst-omx|gstreamer-vaapi|gst-integration-testsuites|gst-plugins-rs)$/'
|
2019-12-05 13:53:24 +00:00
|
|
|
needs:
|
|
|
|
- "build cerbero cross-ios universal"
|
2019-08-28 16:00:28 +00:00
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
cerbero cross-ios universal examples:
|
|
|
|
extends: ".cross-ios universal examples"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME == "cerbero"'
|
2019-09-12 03:05:37 +00:00
|
|
|
needs:
|
2020-06-09 19:40:45 +00:00
|
|
|
- "cerbero deps cross-ios universal"
|
2019-12-19 07:20:14 +00:00
|
|
|
|
|
|
|
build gst-omx zynq fedora x86_64:
|
2020-04-21 08:54:04 +00:00
|
|
|
extends: '.build fedora x86_64'
|
2019-12-19 07:20:14 +00:00
|
|
|
variables:
|
2019-09-30 04:44:10 +00:00
|
|
|
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} $MESON_GST_WERROR"
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gst-omx|gst-ci)$/'
|
2019-12-19 07:20:14 +00:00
|
|
|
before_script:
|
2020-05-20 15:15:44 +00:00
|
|
|
- git clone https://github.com/Xilinx/vcu-omx-il.git --branch=release-2020.1 ${CI_PROJECT_DIR}/vcu-omx-il
|
2020-01-15 04:39:55 +00:00
|
|
|
|
2019-12-19 07:20:14 +00:00
|
|
|
build gst-omx tizonia fedora x86_64:
|
2020-04-21 08:54:04 +00:00
|
|
|
extends: '.build fedora x86_64'
|
2019-12-19 07:20:14 +00:00
|
|
|
variables:
|
2019-09-30 04:44:10 +00:00
|
|
|
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} $MESON_GST_WERROR"
|
2019-12-19 07:20:14 +00:00
|
|
|
PKG_CONFIG_PATH: ${PKG_CONFIG_PATH}:${CI_PROJECT_DIR}/tizonia-install/lib64/pkgconfig/
|
2020-03-18 01:58:54 +00:00
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME =~ /^(gst-omx|gst-ci)$/'
|
2019-12-19 07:20:14 +00:00
|
|
|
before_script:
|
|
|
|
- git clone https://github.com/tizonia/tizonia-openmax-il --branch v0.20.2
|
|
|
|
- cd tizonia-openmax-il
|
|
|
|
- meson build -Dclients=false -Dplugins='' -Dplayer=false -Dprefix=${CI_PROJECT_DIR}/tizonia-install
|
|
|
|
- ninja -C build
|
|
|
|
- ninja -C build install
|
|
|
|
- cd ..
|
2020-08-07 12:29:39 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Cerbero Native Windows builds
|
|
|
|
#
|
|
|
|
.cerbero windows native:
|
|
|
|
needs: ['manifest']
|
2021-03-05 06:28:47 +00:00
|
|
|
image: $CERBERO_WINDOWS_IMAGE
|
2020-08-07 12:29:39 +00:00
|
|
|
tags:
|
|
|
|
- 'docker'
|
|
|
|
- 'windows'
|
|
|
|
- 'gstreamer-windows'
|
|
|
|
- '1809'
|
|
|
|
variables:
|
|
|
|
CONFIG: 'win64.cbc'
|
|
|
|
ARCH: 'msvc_x86_64'
|
2020-09-21 18:34:08 +00:00
|
|
|
CERBERO_HOST_DIR: "C:/cerbero"
|
2020-08-07 12:29:39 +00:00
|
|
|
CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v visualstudio -v nowerror"
|
|
|
|
CERBERO_RUN_SUFFIX: ".exe"
|
|
|
|
HAVE_CCACHE: ""
|
|
|
|
before_script:
|
|
|
|
- $env:CI_PROJECT_DIR = $env:CI_PROJECT_DIR.replace('\', '/')
|
|
|
|
- $env:CERBERO_SCRIPTS_PATH = "$env:CI_PROJECT_DIR/cerbero_setup.sh"
|
2020-09-17 11:06:59 +00:00
|
|
|
- echo "Fetching $env:CERBERO_SCRIPT_URL"
|
2020-08-07 12:29:39 +00:00
|
|
|
- Invoke-WebRequest -Uri $env:CERBERO_SCRIPT_URL -OutFile $env:CERBERO_SCRIPTS_PATH
|
|
|
|
- C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_before_script"
|
|
|
|
|
|
|
|
cerbero deps msvc x86_64:
|
|
|
|
extends: ['.cerbero deps', '.cerbero windows native']
|
|
|
|
script:
|
|
|
|
- C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_deps_script"
|
|
|
|
|
|
|
|
build cerbero msvc x86_64:
|
|
|
|
extends: ['.cerbero', '.cerbero windows native']
|
|
|
|
script:
|
|
|
|
- C:\MinGW\msys\1.0\bin\bash.exe --login -c "cd $env:CI_PROJECT_DIR && $env:CERBERO_SCRIPTS_PATH cerbero_script"
|
|
|
|
rules:
|
|
|
|
- if: '$CI_PROJECT_NAME !~ /^(cerbero|gst-build|gst-omx|gstreamer-vaapi|gst-docs|gst-integration-testsuites|gst-plugins-rs)$/'
|