1 include: "gitlab/ci_template.yml"
9 # use the binaries in some way
17 image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/test-manifest:2019-10-23-793476'
20 - pytest-3 --junitxml=junit.xml --cov=build_manifest gitlab/build_manifest.py
21 coverage: '/TOTAL.*\s+(\d+%)$/'
28 image: 'registry.fedoraproject.org/fedora:31'
36 BUILDAH_FORMAT: 'docker'
39 - export DATE=$(date +"%Y-%m-%d")
40 - export IMAGE="${CI_REGISTRY_IMAGE}/${ARCH}/${TAG}"
41 - export _UID="${IMAGE}:${DATE}-${CI_JOB_ID}"
42 - export LATEST="${IMAGE}:latest"
44 - dnf install -y buildah runc
45 # Newer versions of podman/buildah try to set overlayfs mount options when
46 # using the vfs driver, and this causes errors.
47 - sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
49 - buildah bud --build-arg DEFAULT_BRANCH=${GST_UPSTREAM_BRANCH} -f ${DOCKERFILE} -t ${LATEST} ${CONTEXT_DIR}
51 # If we are in a fork, push the image to the reigstry regardless the branch
53 if [ "$CI_PROJECT_NAMESPACE" != "gstreamer" ]; then
54 buildah login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
55 buildah push ${LATEST}
58 # Push the images to the upstream registry
60 if [ "$CI_PROJECT_NAMESPACE" = "gstreamer" ]; then
61 # Tag the image with the git ref
62 buildah image tag ${LATEST} ${_UID}-${CI_COMMIT_REF_NAME}
64 buildah login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
65 buildah push ${_UID}-${CI_COMMIT_REF_NAME}
66 buildah push ${LATEST}
69 alpine amd64 manifest builder docker:
74 CONTEXT_DIR: "docker/build_manifest/"
75 DOCKERFILE: "docker/build_manifest/Dockerfile"
78 test manifest amd64 docker:
83 CONTEXT_DIR: "docker/test_manifest/"
84 DOCKERFILE: "docker/test_manifest/Dockerfile"
87 gst-indent amd64 docker:
92 CONTEXT_DIR: "docker/indent/"
93 DOCKERFILE: "docker/indent/Dockerfile"
101 CONTEXT_DIR: "docker/fedora/"
102 DOCKERFILE: "docker/fedora/Dockerfile"
105 cerbero fedora amd64 docker:
106 stage: "build docker"
109 TAG: "cerbero-fedora"
110 CONTEXT_DIR: "docker/cerbero/"
111 DOCKERFILE: "docker/cerbero/Dockerfile-fedora"
115 stage: "build docker"
119 CONTEXT_DIR: "docker/android/"
120 DOCKERFILE: "docker/android/Dockerfile"
123 .local_rules: &local_rules
125 - if: '$CI_COMMIT_REF_NAME == "master" && $CI_PROJECT_PATH == "gstreamer/gst-ci"'
130 .local_template: &local_template
135 # Test the build job against the latest build image tag and the local manifest
136 build fedora x86_64 local:
139 image: "${CI_REGISTRY_IMAGE}/amd64/fedora:latest"
148 build cerbero fedora x86_64 local:
149 extends: '.cerbero fedora x86_64'
150 image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
153 build cerbero cross-android universal local:
154 extends: '.cerbero cross-android universal'
155 image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
158 build cerbero cross win32 local:
159 extends: '.cerbero cross win32'
160 image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
163 build cerbero cross win64 local:
164 extends: '.cerbero cross win64'
165 image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
168 # Note: dependencies: will be deprecated in the future, but current manual
169 # jobs with needs: (even if they are allowed to fail) will leave the pipeline
171 .test fedora x86_64 local:
172 image: '${CI_REGISTRY_IMAGE}/amd64/fedora:latest'
176 - 'build fedora x86_64 local'
179 extends: '.test fedora x86_64 local'
181 TEST_SUITE: 'check.gst*'
183 cross-android universal examples local:
184 extends: '.cross-android universal examples'
185 image: "${CI_REGISTRY_IMAGE}/amd64/android:latest"
188 - 'build cerbero cross-android universal local'
190 integration testsuites fedora local:
191 extends: '.test fedora x86_64 local'
193 - rm -f gst-build/build/subprojects/gstreamer-vaapi/gst/vaapi/libgstvaapi.so
195 EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures"
196 TEST_SUITE: "validate ges"