6 # Use the resulting binaries
10 ANDROID_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/android:2019-06-12-354260'
11 CERBERO_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/cerbero-fedora:2019-09-24-648163'
12 FEDORA_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora:2019-05-29-324578'
13 INDENT_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/gst-indent:6f7e01e1e30a73efa880acdc8e911f1f20c58dbb'
14 MANIFEST_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/build-manifest:d19082b72667fb3382bdc3621520c4d26e258b2e'
15 WINDOWS_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:v6'
17 # Branch to track for modules that have no ref specified in the manifest
18 GST_UPSTREAM_BRANCH: 'master'
19 ORC_UPSTREAM_BRANCH: 'master'
22 MESON_BUILDTYPE_ARGS: --default-library=both
34 DEFAULT_CERBERO_ARGS: >
42 - 'runner_system_failure'
46 image: $MANIFEST_IMAGE
48 - '.global_retry_policy'
52 - gitlab/build_manifest.py --self-update
53 - gitlab/build_manifest.py ${CI_PROJECT_DIR}/manifest.xml
54 - cat ${CI_PROJECT_DIR}/manifest.xml
63 - '.global_retry_policy'
68 # man indent. grep RETURN VALUE, grab a beer on my behalf...
69 - indent --version || true
70 - curl -o gst-indent https://gitlab.freedesktop.org/gstreamer/gstreamer/raw/${GST_UPSTREAM_BRANCH}/tools/gst-indent
72 - find . -name '*.c' -exec ./gst-indent {} +
74 if git diff --quiet; then
75 echo "Code is properly formatted"
77 git diff --color=always
78 echo 'style diverges, please run gst-indent first'
83 # No point on trying to format C files in those repositories
84 - $CI_PROJECT_NAME == "gstreamer-sharp"
85 - $CI_PROJECT_NAME == "gst-integration-testsuites"
86 - $CI_PROJECT_NAME == "cerbero"
87 - $CI_PROJECT_NAME == "gst-docs"
92 - '.global_retry_policy'
98 CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
99 CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
100 MESON_ARGS: "${DEFAULT_MESON_ARGS} ${MESON_BUILDTYPE_ARGS} --werror"
104 - curl -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
105 - chmod +x clone_manifest_ref.py
106 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-build --destination gst-build
108 # only copy immediate directories. We don't want to modify .wrap files
109 - find /gst-build/subprojects/ -mindepth 1 -maxdepth 1 -type d -exec cp -r \{\} subprojects/ \;
110 - ./git-update --no-interaction --manifest="${CI_PROJECT_DIR}/manifest.xml"
111 - meson build/ $MESON_ARGS
116 # Clean the artifacts packages to avoid copying "useless" build products.
117 - test -d build && find build -name '*.[ao]' -delete
118 # Clean the .git repos since we won't need them anymore
119 - rm -rf subprojects/*/.git/
120 - rm -rf build/subprojects/*/.git/
122 key: "${CI_JOB_NAME}"
127 - $CI_PROJECT_NAME == "cerbero"
134 MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Domx=enabled -Dgst-omx:target=generic -Ddoc=enabled ${MESON_BUILDTYPE_ARGS} --werror"
143 - $CI_PROJECT_NAME == "cerbero"
145 build nodebug fedora x86_64:
150 MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic ${MESON_BUILDTYPE_ARGS} --werror"
153 - $CI_PROJECT_NAME == "cerbero"
154 - $CI_PROJECT_NAME == "gst-docs"
156 build static fedora x86_64:
157 extends: 'build fedora x86_64'
159 MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
162 - $CI_PROJECT_NAME == "cerbero"
163 - $CI_PROJECT_NAME == "gst-docs"
165 build static nodebug fedora x86_64:
166 extends: 'build nodebug fedora x86_64'
168 MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
171 - $CI_PROJECT_NAME == "cerbero"
172 - $CI_PROJECT_NAME == "gst-docs"
174 build clang fedora x86_64:
175 extends: 'build fedora x86_64'
178 CXX: 'ccache clang++'
181 - $CI_PROJECT_NAME == "cerbero"
182 - $CI_PROJECT_NAME == "gst-docs"
187 - '.global_retry_policy'
189 # Disable colored output to avoid weird rendering issues
190 GST_DEBUG_NO_COLOR: "true"
191 CI_ARTIFACTS_URL: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/raw/validate-logs/"
192 GST_VALIDATE_LAUNCHER_FORCE_COLORS: "true"
197 - echo "-> Running ${TEST_SUITE}"
200 gst-validate-launcher ${TEST_SUITE}
206 --fail-on-testlist-change
207 -l "${CI_PROJECT_DIR}/validate-logs/"
208 --xunit-file "${CI_PROJECT_DIR}/validate-logs/xunit.xml"
209 ${EXTRA_VALIDATE_ARGS}
214 - 'gst-build/build/meson-logs/'
218 - "validate-logs/*.xml"
219 # We disable the .build above, which this job usually depends upon for cerbero
222 - $CI_PROJECT_NAME == "cerbero"
223 - $CI_PROJECT_NAME == "gst-examples"
224 - $CI_PROJECT_NAME == "gst-docs"
230 - 'build fedora x86_64'
232 - build fedora x86_64
235 extends: '.test fedora x86_64'
237 TEST_SUITE: "check.gst*"
240 - $CI_PROJECT_NAME == "gst-integration-testsuites"
241 - $CI_PROJECT_NAME == "cerbero"
242 - $CI_PROJECT_NAME == "gst-examples"
243 - $CI_PROJECT_NAME == "gst-omx"
244 - $CI_PROJECT_NAME == "gst-docs"
246 integration testsuites fedora:
247 extends: '.test fedora x86_64'
249 - rm -f gst-build/build/subprojects/gstreamer-vaapi/gst/vaapi/libgstvaapi.so
251 EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs"
252 TEST_SUITE: "validate ges"
255 - $CI_PROJECT_NAME == "gst-omx"
256 - $CI_PROJECT_NAME == "gstreamer-vaapi"
257 - $CI_PROJECT_NAME == "cerbero"
258 - $CI_PROJECT_NAME == "gst-docs"
261 .valgrind fedora x86_64:
262 extends: '.test fedora x86_64'
265 EXTRA_VALIDATE_ARGS: "--valgrind"
266 # Some suppression files are missing a newline at the end which messes things
267 # up when concatenating them. awk will add missing newlines (unlike cat)
270 - $CI_PROJECT_NAMESPACE == 'gstreamer'
273 extends: '.valgrind fedora x86_64'
275 TEST_SUITE: "check.gstreamer\\..*"
278 - $CI_PROJECT_NAME =~ /^(gstreamer|gst-ci)$/
281 extends: '.valgrind fedora x86_64'
283 TEST_SUITE: "check.gst-plugins-base\\..*"
286 - $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-ci)$/
289 extends: '.valgrind fedora x86_64'
291 TEST_SUITE: "check.gst-plugins-good\\..*"
294 - $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-ci)$/
297 extends: '.valgrind fedora x86_64'
299 TEST_SUITE: "check.gst-plugins-ugly\\..*"
302 - $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-ugly|gst-ci)$/
305 extends: '.valgrind fedora x86_64'
307 TEST_SUITE: "check.gst-plugins-bad\\..*"
310 - $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-bad|gst-ci)$/
313 extends: '.valgrind fedora x86_64'
315 TEST_SUITE: "check.gst-editing-services\\..*"
318 - $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-editing-services|gst-ci)$/
320 # Template for Cerbero GStreamer Build
323 # CONFIG: The name of the configuration file to use
324 # ARCH: The cerbero <os>_<cpu> (used in cache key)
326 # Produces runtime and devel tarball packages for linux/android or .pkg for macos
329 image: $CERBERO_IMAGE
331 - '.global_retry_policy'
337 CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
338 CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
339 CCACHE_MAXSIZE: "1.7G"
340 CERBERO_HOME: "cerbero-build"
341 CERBERO_SOURCES: "cerbero-sources"
342 CERBERO_DEPS: "cerbero-deps.tar.gz"
343 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS}"
344 CERBERO: "./cerbero-uninstalled -c config/${CONFIG} -c localconf.cbc -m manifest.xml"
345 CERBERO_PACKAGE_ARGS: "-t"
347 # used by macos packages as we only ever install to a fixed directory
348 CERBERO_OVERRIDDEN_DIST_DIR: ""
350 # FIXME Wrong namespace
351 # Workaround build-tools having hardcoded internal path
353 - mkdir -p ../../gstreamer
354 - ln -sf $(pwd) ../../gstreamer/cerbero
355 - mkdir -p ../../${CI_PROJECT_NAMESPACE}
356 - ln -sf $(pwd) ../../${CI_PROJECT_NAMESPACE}/cerbero
357 - rsync -aH /cerbero/ .
358 - test -f ${CERBERO_DEPS} && tar -C ${CERBERO_HOME} -xf ${CERBERO_DEPS}
359 - echo "home_dir = \"$(pwd)/${CERBERO_HOME}\"" >> localconf.cbc
360 - echo "local_sources = \"$(pwd)/${CERBERO_SOURCES}\"" >> localconf.cbc
361 - ./cerbero-uninstalled --self-update manifest.xml
363 - test "x${HAVE_CCACHE}" = "xyes" && ccache -z
364 - $CERBERO $CERBERO_ARGS show-config
365 - $CERBERO $CERBERO_ARGS fetch-bootstrap --build-tools-only
366 - $CERBERO $CERBERO_ARGS fetch-package --deps gstreamer-1.0
367 - $CERBERO $CERBERO_ARGS fetch-cache --branch ${GST_UPSTREAM_BRANCH}
368 - test "x${CERBERO_OVERRIDDEN_DIST_DIR}" != "x"
369 && test -d ${CERBERO_HOME}/dist/${ARCH}
370 && mkdir -p ${CERBERO_OVERRIDDEN_DIST_DIR}
371 && rsync -aH ${CERBERO_HOME}/dist/${ARCH}/ ${CERBERO_OVERRIDDEN_DIST_DIR}
372 - $CERBERO $CERBERO_ARGS bootstrap --offline --build-tools-only
373 - $CERBERO $CERBERO_ARGS package --offline ${CERBERO_PACKAGE_ARGS} -o $(pwd) gstreamer-1.0
374 - test "x${HAVE_CCACHE}" = "xyes" && ccache -s || true # eat the return value from the failing test
377 - $CI_PROJECT_NAME == "gst-build"
378 - $CI_PROJECT_NAME == "gst-docs"
380 key: "${CI_JOB_NAME}"
383 - "${CERBERO_SOURCES}"
385 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
390 - "${CERBERO_HOME}/logs"
394 image: $WINDOWS_IMAGE
396 - '.global_retry_policy'
408 ${DEFAULT_MESON_ARGS}
414 - git clone https://gitlab.freedesktop.org/gstreamer/gst-build.git $env:CI_PROJECT_DIR/gst-build
415 - cd $env:CI_PROJECT_DIR/gst-build
416 - cp -r C:/subprojects/* subprojects/
417 # For some reason, options are separated by newline instead of space, so we
418 # have to replace them first.
419 - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
420 # Gitlab executes PowerShell in docker, but VsDevCmd.bat is a batch script.
421 # Environment variables substitutions is done by PowerShell before calling
422 # cmd.exe, that's why we use $env:FOO instead of %FOO%
423 - cmd.exe /C "C:\BuildTools\Common7\Tools\VsDevCmd.bat -host_arch=amd64 -arch=$env:ARCH &&
424 python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml &&
425 meson build $env:MESON_ARGS &&
427 # FIXME: extract builddir for tests
428 # There's a bug that prevents us from exporting artifacts with docker-windows
429 # executors. It has since been fixed in gitlab 12.1, but
430 # we are blocked from upgrading currently.
432 # Gitlab Runner issue: https://gitlab.com/gitlab-org/gitlab-runner/issues/4291
433 # Blocked upgrade issue: https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/6#note_192780
437 - $CI_PROJECT_NAME == "cerbero"
438 - $CI_PROJECT_NAME == "gst-omx"
439 - $CI_PROJECT_NAME == "gstreamer-vaapi"
440 - $CI_PROJECT_NAME == "gst-docs"
443 extends: '.build windows'
448 extends: '.build windows'
453 extends: '.build windows'
455 - git clone https://gitlab.freedesktop.org/gstreamer/gst-build.git $env:CI_PROJECT_DIR/gst-build
456 - cd $env:CI_PROJECT_DIR/gst-build
457 - cp -r C:/subprojects/* subprojects/
459 - $env:PATH += ";C:\msys64\usr\bin;C:\msys64\mingw64/bin;C:\msys64\mingw32/bin"
460 # For some reason, options are separated by newline instead of space, so we
461 # have to replace them first.
462 - $env:MESON_ARGS = $env:MESON_ARGS.replace("`n"," ")
463 - C:\msys64\usr\bin\bash -c "cd $env:CI_PROJECT_DIR/gst-build &&
464 python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml &&
465 meson build $env:MESON_ARGS &&
469 # Template for Cerbero GStreamer Deps
471 # This template is used by cerbero/ project to pre-built the GStreamer
472 # dependencies. When available, the .cerbero jobs will download this artifact
473 # in order to speed up the build.
476 # CONFIG: The name of the configuration file to use
477 # ARCH: The cerbero <os>_<cpu> (used in cache key)
479 # Produce an artifact with the dist/ and .cache along
480 # with the associated build-tools.
485 - $CERBERO $CERBERO_ARGS show-config
486 - $CERBERO $CERBERO_ARGS fetch-bootstrap --build-tools-only
487 - $CERBERO $CERBERO_ARGS fetch-package --deps gstreamer-1.0
488 - $CERBERO $CERBERO_ARGS bootstrap --offline --build-tools-only
489 - $CERBERO $CERBERO_ARGS build-deps --offline
490 gstreamer-1.0 gst-plugins-base-1.0 gst-plugins-good-1.0
491 gst-plugins-bad-1.0 gst-plugins-ugly-1.0 gst-rtsp-server-1.0
492 gst-libav-1.0 gst-validate gst-editing-services-1.0 libnice
493 - $CERBERO $CERBERO_ARGS fetch-cache --branch ${GST_UPSTREAM_BRANCH} --skip-fetch --job-id=${CI_JOB_ID}
494 - test "x${CERBERO_OVERRIDDEN_DIST_DIR}" != "x"
495 && mkdir -p ${CERBERO_HOME}/dist/${ARCH}
496 && rsync -aH ${CERBERO_OVERRIDDEN_DIST_DIR}/ ${CERBERO_HOME}/dist/${ARCH}
497 - tar -C ${CERBERO_HOME} -czf $CERBERO_DEPS
498 build-tools build-tools.cache
499 dist/${ARCH} ${ARCH}.cache
502 - $CI_PROJECT_NAME == "cerbero"
504 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
509 - "${CERBERO_HOME}/logs"
510 - "${CERBERO_HOME}/cerbero-deps.log"
514 # Cerbero Linux X86_64 build
516 cerbero deps fedora x86_64:
517 extends: '.cerbero deps'
519 CONFIG: "linux.config"
522 .cerbero fedora x86_64:
525 CONFIG: "linux.config"
527 cerbero fedora x86_64:
528 extends: '.cerbero fedora x86_64'
530 - "cerbero deps fedora x86_64"
533 - "cerbero deps fedora x86_64"
536 - $CI_PROJECT_NAME == "cerbero"
538 build cerbero fedora x86_64:
539 extends: '.cerbero fedora x86_64'
542 - $CI_PROJECT_NAME == "cerbero"
543 - $CI_PROJECT_NAME == "gst-build"
544 - $CI_PROJECT_NAME == "gst-omx"
545 - $CI_PROJECT_NAME == "gstreamer-vaapi"
546 - $CI_PROJECT_NAME == "gst-docs"
549 # Cerbero Android Universal build
551 cerbero deps cross-android universal:
552 extends: '.cerbero deps'
554 CONFIG: "cross-android-universal.cbc"
555 ARCH: "android_universal"
557 .cerbero cross-android universal:
560 CONFIG: "cross-android-universal.cbc"
562 cerbero cross-android universal:
563 extends: '.cerbero cross-android universal'
565 - "cerbero deps cross-android universal"
568 - "cerbero deps cross-android universal"
571 - $CI_PROJECT_NAME == "cerbero"
573 build cerbero cross-android universal:
574 extends: '.cerbero cross-android universal'
577 - $CI_PROJECT_NAME == "cerbero"
578 - $CI_PROJECT_NAME == "gst-build"
579 - $CI_PROJECT_NAME == "gst-omx"
580 - $CI_PROJECT_NAME == "gstreamer-vaapi"
581 - $CI_PROJECT_NAME == "gst-docs"
584 # Cerbero Cross Windows builds
586 cerbero deps cross-windows x86:
587 extends: '.cerbero deps'
589 CONFIG: "cross-win32.cbc"
592 .cerbero cross win32:
595 CONFIG: "cross-win32.cbc"
598 extends: '.cerbero cross win32'
600 - "cerbero deps cross-windows x86"
603 - "cerbero deps cross-windows x86"
606 - $CI_PROJECT_NAME == "cerbero"
608 build cerbero cross win32:
609 extends: '.cerbero cross win32'
612 - $CI_PROJECT_NAME == "cerbero"
613 - $CI_PROJECT_NAME == "gst-build"
614 - $CI_PROJECT_NAME == "gst-omx"
615 - $CI_PROJECT_NAME == "gstreamer-vaapi"
616 - $CI_PROJECT_NAME == "gst-docs"
618 cerbero deps cross-windows x86_64:
619 extends: '.cerbero deps'
621 CONFIG: "cross-win64.cbc"
622 ARCH: "windows_x86_64"
624 .cerbero cross win64:
627 CONFIG: "cross-win64.cbc"
630 extends: '.cerbero cross win64'
632 - "cerbero deps cross-windows x86_64"
635 - "cerbero deps cross-windows x86_64"
638 - $CI_PROJECT_NAME == "cerbero"
640 build cerbero cross win64:
641 extends: '.cerbero cross win64'
644 - $CI_PROJECT_NAME == "cerbero"
645 - $CI_PROJECT_NAME == "gst-build"
646 - $CI_PROJECT_NAME == "gst-omx"
647 - $CI_PROJECT_NAME == "gstreamer-vaapi"
648 - $CI_PROJECT_NAME == "gst-docs"
651 # Build an Android App using the android binaries
653 .cross-android universal examples:
654 image: $ANDROID_IMAGE
656 - '.global_retry_policy'
659 EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
660 GSTREAMER_ROOT_ANDROID: ${CI_PROJECT_DIR}/examples/cerbero-android-universal
662 - mkdir -p ${EXAMPLES_HOME}/outputs
663 - curl -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
664 - chmod +x clone_manifest_ref.py
665 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-examples --destination ${EXAMPLES_HOME}/gst-examples
666 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-docs --destination ${EXAMPLES_HOME}/gst-docs
667 - rm clone_manifest_ref.py
669 # extract our binaries
670 - rm -f gstreamer-1.0-android-universal-*-runtime.tar.bz2
671 - mkdir ${GSTREAMER_ROOT_ANDROID}
672 - tar -C ${GSTREAMER_ROOT_ANDROID} -xf gstreamer-1.0-android-universal-*.tar.bz2
675 - chmod +x ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew
676 - ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew --no-search-upward --no-daemon --project-dir ${EXAMPLES_HOME}/gst-examples/playback/player/android assembleDebug
677 - cp ${EXAMPLES_HOME}/gst-examples/playback/player/android/app/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
679 # gst-docs android tutorials
680 - chmod +x ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew
681 - ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew --no-search-upward --no-daemon --project-dir ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android assembleDebug
682 - cp ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/android-tutorial-*/build/outputs/apk/debug/*.apk ${EXAMPLES_HOME}/outputs/
684 - rm -rf ${GSTREAMER_ROOT_ANDROID}
685 - rm -rf ${EXAMPLES_HOME}/gst-examples ${EXAMPLES_HOME}/gst-docs
687 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
692 - "${EXAMPLES_HOME}/outputs"
694 cross-android universal examples:
695 extends: ".cross-android universal examples"
697 - "build cerbero cross-android universal"
700 - "build cerbero cross-android universal"
703 - $CI_PROJECT_NAME == "cerbero"
704 - $CI_PROJECT_NAME == "gst-build"
705 - $CI_PROJECT_NAME == "gst-omx"
706 - $CI_PROJECT_NAME == "gst-integration-testsuites"
707 - $CI_PROJECT_NAME == "gstreamer-vaapi"
708 - $CI_PROJECT_NAME == "gst-docs"
710 cerbero cross-android universal examples:
711 extends: ".cross-android universal examples"
713 - "cerbero cross-android universal"
716 - "cerbero cross-android universal"
719 - $CI_PROJECT_NAME == "cerbero"
722 # Cerbero macOS X86_64 build
724 cerbero deps macos x86_64:
725 extends: '.cerbero deps'
727 ARCH: "darwin_x86_64"
728 CONFIG: "osx-x86-64.cbc"
730 CERBERO_OVERRIDDEN_DIST_DIR: "/Library/Frameworks/GStreamer.framework/Versions/1.0"
734 .cerbero macos x86_64:
737 ARCH: "darwin_x86_64"
738 CONFIG: "osx-x86-64.cbc"
739 CERBERO_PACKAGE_ARGS: ""
741 CERBERO_OVERRIDDEN_DIST_DIR: "/Library/Frameworks/GStreamer.framework/Versions/1.0"
745 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
750 - "${CERBERO_HOME}/logs"
751 - "gstreamer-1.0-1.*.pkg"
752 - "gstreamer-1.0-devel-1.*.pkg"
754 cerbero macos x86_64:
755 extends: '.cerbero macos x86_64'
757 - "cerbero deps macos x86_64"
760 - "cerbero deps macos x86_64"
763 - $CI_PROJECT_NAME == "cerbero"
765 build cerbero macos x86_64:
766 extends: '.cerbero macos x86_64'
769 - $CI_PROJECT_NAME == "cerbero"
770 - $CI_PROJECT_NAME == "gst-build"
771 - $CI_PROJECT_NAME == "gst-integration-testsuite"
772 - $CI_PROJECT_NAME == "gst-omx"
773 - $CI_PROJECT_NAME == "gstreamer-vaapi"
774 - $CI_PROJECT_NAME == "gst-docs"
775 - $CI_PROJECT_NAME == "gst-sharp"
780 cerbero deps cross-ios universal:
781 extends: '.cerbero deps'
783 ARCH: "ios_universal"
784 CONFIG: "cross-ios-universal.cbc"
785 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v nowerror"
790 .cerbero cross-ios universal:
793 ARCH: "ios_universal"
794 CONFIG: "cross-ios-universal.cbc"
795 CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v nowerror"
796 CERBERO_PACKAGE_ARGS: ""
801 name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
806 - "${CERBERO_HOME}/logs"
807 - "gstreamer-1.0-*-ios-universal.pkg"
809 cerbero cross-ios universal:
810 extends: '.cerbero cross-ios universal'
812 - "cerbero deps cross-ios universal"
815 - "cerbero deps cross-ios universal"
818 - $CI_PROJECT_NAME == "cerbero"
820 build cerbero cross-ios universal:
821 extends: '.cerbero cross-ios universal'
825 - $CI_PROJECT_NAME == "cerbero"
826 - $CI_PROJECT_NAME == "gst-build"
827 - $CI_PROJECT_NAME == "gst-integration-testsuite"
828 - $CI_PROJECT_NAME == "gst-omx"
829 - $CI_PROJECT_NAME == "gstreamer-vaapi"
830 - $CI_PROJECT_NAME == "gst-docs"
831 - $CI_PROJECT_NAME == "gst-sharp"
836 - '.global_retry_policy'
838 - "build fedora x86_64"
841 - 'build fedora x86_64'
845 - pip3 install --upgrade git+https://github.com/hotdoc/hotdoc.git
847 - ./gst-uninstalled.py hotdoc run --conf-file=build/subprojects/gst-docs/GStreamer-doc.json --fatal-warnings
849 - mv gst-build/build/subprojects/gst-docs/GStreamer-doc/html documentation/
856 - $CI_PROJECT_NAME == "cerbero"
857 - $CI_PROJECT_NAME == "gst-integration-testsuite"
858 - $CI_PROJECT_NAME == "gst-python"
859 - $CI_PROJECT_NAME == "gst-sharp"
860 - $CI_PROJECT_NAME == "gst-build"
863 # Build an iOS App using the iOS binaries
865 .cross-ios universal examples:
868 - '.global_retry_policy'
870 EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
871 # disable codesigning so we don't need developer identities on the CI
874 CODE_SIGNING_REQUIRED="NO"
875 CODE_SIGN_IDENTITY=""
876 CODE_SIGNING_ALLOWED="NO"
877 CODE_SIGN_ENTITLEMENTS=""
879 # install the binaries
880 - installer -pkg gstreamer-1.0-devel-*-ios-universal.pkg -target CurrentUserHomeDirectory -verbose
882 - curl -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
883 - chmod +x clone_manifest_ref.py
884 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-examples --destination ${EXAMPLES_HOME}/gst-examples
885 - ./clone_manifest_ref.py --manifest manifest.xml --project gst-docs --destination ${EXAMPLES_HOME}/gst-docs
886 - rm clone_manifest_ref.py
888 # dump some useful information
889 - xcodebuild -version
890 - xcodebuild -showsdks
892 # gst-docs ios tutorials
893 - xcodebuild -showBuildSettings -alltargets -project ${EXAMPLES_HOME}/gst-docs/examples/tutorials/xcode\ iOS/GStreamer\ iOS\ Tutorials.xcodeproj
894 - xcodebuild -alltargets -destination generic/platform=iOS -project ${EXAMPLES_HOME}/gst-docs/examples/tutorials/xcode\ iOS/GStreamer\ iOS\ Tutorials.xcodeproj ${XCODE_BUILD_ARGS}
897 - xcodebuild -showBuildSettings -alltargets -project ${EXAMPLES_HOME}/gst-examples/playback/player/ios/GstPlay.xcodeproj
898 - xcodebuild -alltargets -destination generic/platform=iOS -project ${EXAMPLES_HOME}/gst-examples/playback/player/ios/GstPlay.xcodeproj ${XCODE_BUILD_ARGS}
900 - rm -rf ${EXAMPLES_HOME}/gst-examples ${EXAMPLES_HOME}/gst-docs
904 cross-ios universal examples:
905 extends: ".cross-ios universal examples"
908 - "build cerbero cross-ios universal"
911 - $CI_PROJECT_NAME == "cerbero"
912 - $CI_PROJECT_NAME == "gst-build"
913 - $CI_PROJECT_NAME == "gst-omx"
914 - $CI_PROJECT_NAME == "gst-integration-testsuites"
915 - $CI_PROJECT_NAME == "gstreamer-vaapi"
917 cerbero cross-ios universal examples:
918 extends: ".cross-ios universal examples"
920 - "cerbero cross-ios universal"
923 - "cerbero cross-ios universal"
926 - $CI_PROJECT_NAME == "cerbero"