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: "docker:stable"
37 # When using dind, it's wise to use the overlayfs driver for
38 # improved performance.
39 DOCKER_DRIVER: "overlay2"
42 - export DATE=$(date +"%Y-%m-%d")
43 - export IMAGE="${CI_REGISTRY_IMAGE}/${ARCH}/${TAG}"
44 - export _UID="${IMAGE}:${DATE}-${CI_JOB_ID}"
45 - export LATEST="${IMAGE}:latest"
47 - docker build --pull --build-arg DEFAULT_BRANCH=${GST_UPSTREAM_BRANCH} -f ${DOCKERFILE} -t ${LATEST} ${CONTEXT_DIR}
49 # If we are in a fork, push the image to the reigstry regardless the branch
51 if [ "$CI_PROJECT_NAMESPACE" != "gstreamer" ]; then
52 docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
56 # Push the images to the upstream registry
58 if [ "$CI_PROJECT_NAMESPACE" = "gstreamer" ]; then
59 # Tag the image with the git ref
60 docker image tag ${LATEST} ${_UID}-${CI_COMMIT_REF_NAME}
62 docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
63 docker push ${_UID}-${CI_COMMIT_REF_NAME}
67 alpine amd64 manifest builder docker:
72 CONTEXT_DIR: "docker/build_manifest/"
73 DOCKERFILE: "docker/build_manifest/Dockerfile"
76 test manifest amd64 docker:
81 CONTEXT_DIR: "docker/test_manifest/"
82 DOCKERFILE: "docker/test_manifest/Dockerfile"
85 gst-indent amd64 docker:
90 CONTEXT_DIR: "docker/indent/"
91 DOCKERFILE: "docker/indent/Dockerfile"
99 CONTEXT_DIR: "docker/fedora/"
100 DOCKERFILE: "docker/fedora/Dockerfile"
103 cerbero fedora amd64 docker:
104 stage: "build docker"
107 TAG: "cerbero-fedora"
108 CONTEXT_DIR: "docker/cerbero/"
109 DOCKERFILE: "docker/cerbero/Dockerfile-fedora"
113 stage: "build docker"
117 CONTEXT_DIR: "docker/android/"
118 DOCKERFILE: "docker/android/Dockerfile"
121 .local_rules: &local_rules
123 - if: '$CI_COMMIT_REF_NAME == "master" && $CI_PROJECT_PATH == "gstreamer/gst-ci"'
128 .local_template: &local_template
133 # Test the build job against the latest build image tag and the local manifest
134 build fedora x86_64 local:
137 image: "${CI_REGISTRY_IMAGE}/amd64/fedora:latest"
146 build cerbero fedora x86_64 local:
147 extends: '.cerbero fedora x86_64'
148 image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
151 build cerbero cross-android universal local:
152 extends: '.cerbero cross-android universal'
153 image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
156 build cerbero cross win32 local:
157 extends: '.cerbero cross win32'
158 image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
161 build cerbero cross win64 local:
162 extends: '.cerbero cross win64'
163 image: "${CI_REGISTRY_IMAGE}/amd64/cerbero-fedora:latest"
166 # Note: dependencies: will be deprecated in the future, but current manual
167 # jobs with needs: (even if they are allowed to fail) will leave the pipeline
169 .test fedora x86_64 local:
170 image: '${CI_REGISTRY_IMAGE}/amd64/fedora:latest'
174 - 'build fedora x86_64 local'
177 extends: '.test fedora x86_64 local'
179 TEST_SUITE: 'check.gst*'
181 cross-android universal examples local:
182 extends: '.cross-android universal examples'
183 image: "${CI_REGISTRY_IMAGE}/amd64/android:latest"
186 - 'build cerbero cross-android universal local'
188 integration testsuites fedora local:
189 extends: '.test fedora x86_64 local'
191 - rm -f gst-build/build/subprojects/gstreamer-vaapi/gst/vaapi/libgstvaapi.so
193 EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures"
194 TEST_SUITE: "validate ges"