2018-11-08 10:32:14 +00:00
|
|
|
stages:
|
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-06-12 15:00:04 +00:00
|
|
|
ANDROID_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/android:2019-06-12-354260'
|
2019-09-19 15:47:52 +00:00
|
|
|
CERBERO_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/cerbero-fedora:2019-09-24-648163'
|
2019-08-07 16:40:27 +00:00
|
|
|
FEDORA_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora:2019-05-29-324578'
|
2019-01-08 06:13:07 +00:00
|
|
|
INDENT_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/gst-indent:6f7e01e1e30a73efa880acdc8e911f1f20c58dbb'
|
2019-01-31 16:18:12 +00:00
|
|
|
MANIFEST_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/build-manifest:d19082b72667fb3382bdc3621520c4d26e258b2e'
|
2019-07-01 15:55:46 +00:00
|
|
|
WINDOWS_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/windows:v6'
|
2019-01-08 06:13:07 +00:00
|
|
|
|
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'
|
|
|
|
|
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: >
|
|
|
|
-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-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
|
|
|
|
2018-11-08 10:32:14 +00:00
|
|
|
manifest:
|
2019-01-08 06:13:07 +00:00
|
|
|
image: $MANIFEST_IMAGE
|
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"
|
|
|
|
|
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'
|
|
|
|
script:
|
|
|
|
# man indent. grep RETURN VALUE, grab a beer on my behalf...
|
|
|
|
- indent --version || true
|
2019-04-24 05:42:27 +00:00
|
|
|
- curl -o gst-indent https://gitlab.freedesktop.org/gstreamer/gstreamer/raw/${GST_UPSTREAM_BRANCH}/tools/gst-indent
|
2018-11-13 11:43:42 +00:00
|
|
|
- chmod +x gst-indent
|
2018-12-05 21:08:49 +00:00
|
|
|
- find . -name '*.c' -exec ./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
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
# No point on trying to format C files in those repositories
|
|
|
|
- $CI_PROJECT_NAME == "gstreamer-sharp"
|
2019-03-25 12:32:27 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-integration-testsuites"
|
2018-11-24 03:52:59 +00:00
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
2018-11-13 11:43:42 +00:00
|
|
|
|
2018-11-08 10:32:14 +00:00
|
|
|
.build:
|
2019-06-12 05:38:14 +00:00
|
|
|
stage: 'build'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
|
|
|
- "manifest"
|
2018-11-23 16:59:04 +00:00
|
|
|
dependencies:
|
|
|
|
- "manifest"
|
2018-11-08 10:32:14 +00:00
|
|
|
variables:
|
|
|
|
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
|
|
|
|
CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
|
2018-11-25 18:38:06 +00:00
|
|
|
MESON_ARGS: "${DEFAULT_MESON_ARGS} ${MESON_BUILDTYPE_ARGS} --werror"
|
2018-11-08 10:32:14 +00:00
|
|
|
|
|
|
|
script:
|
2018-12-10 19:35:38 +00:00
|
|
|
- ccache -z
|
2019-06-11 05:50:41 +00:00
|
|
|
- curl -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
|
|
|
|
- chmod +x clone_manifest_ref.py
|
|
|
|
- ./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/ \;
|
2018-11-08 10:32:14 +00:00
|
|
|
- ./git-update --no-interaction --manifest="${CI_PROJECT_DIR}/manifest.xml"
|
|
|
|
- meson build/ $MESON_ARGS
|
|
|
|
- ninja -C build/
|
2018-12-10 19:35:38 +00:00
|
|
|
- ccache -s
|
2018-11-08 10:32:14 +00:00
|
|
|
after_script:
|
|
|
|
- cd gst-build/
|
|
|
|
# Clean the artifacts packages to avoid copying "useless" build products.
|
2018-12-05 21:08:49 +00:00
|
|
|
- test -d build && find build -name '*.[ao]' -delete
|
2018-11-08 10:32:14 +00:00
|
|
|
# Clean the .git repos since we won't need them anymore
|
|
|
|
- rm -rf subprojects/*/.git/
|
|
|
|
- rm -rf build/subprojects/*/.git/
|
|
|
|
cache:
|
2018-12-09 02:34:35 +00:00
|
|
|
key: "${CI_JOB_NAME}"
|
2018-11-08 10:32:14 +00:00
|
|
|
paths:
|
|
|
|
- "${CCACHE_DIR}"
|
2018-11-24 03:52:59 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2018-11-08 10:32:14 +00:00
|
|
|
|
2018-11-23 16:48:11 +00:00
|
|
|
build fedora x86_64:
|
2018-11-21 14:55:02 +00:00
|
|
|
extends: '.build'
|
2018-11-23 16:45:31 +00:00
|
|
|
stage: 'build'
|
2019-01-08 06:13:07 +00:00
|
|
|
image: $FEDORA_IMAGE
|
2019-02-25 22:17:11 +00:00
|
|
|
variables:
|
2019-08-27 23:30:49 +00:00
|
|
|
MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Domx=enabled -Dgst-omx:target=generic -Ddoc=enabled ${MESON_BUILDTYPE_ARGS} --werror"
|
2019-08-09 11:31:07 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: '5 days'
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
|
|
|
- "gst-build/"
|
2019-05-14 16:03:49 +00:00
|
|
|
except:
|
2019-05-16 18:03:09 +00:00
|
|
|
variables:
|
2019-05-24 15:32:16 +00:00
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2018-11-08 10:32:14 +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'
|
|
|
|
stage: 'build'
|
2019-08-07 16:40:27 +00:00
|
|
|
image: $FEDORA_IMAGE
|
2019-03-20 19:45:31 +00:00
|
|
|
variables:
|
2019-08-27 23:30:49 +00:00
|
|
|
MESON_ARGS: "${DEFAULT_MESON_ARGS} -Dsharp=enabled -Dgstreamer:gst_debug=false -Domx=enabled -Dgst-omx:target=generic ${MESON_BUILDTYPE_ARGS} --werror"
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
2019-05-25 11:48:12 +00:00
|
|
|
|
|
|
|
build static fedora x86_64:
|
|
|
|
extends: 'build fedora x86_64'
|
|
|
|
variables:
|
|
|
|
MESON_BUILDTYPE_ARGS: "--default-library=static -Dintrospection=disabled -Ddoc=disabled"
|
2019-08-27 23:30:49 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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"
|
2019-08-27 23:30:49 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
2019-03-20 19:45:31 +00:00
|
|
|
|
2019-08-26 10:57:16 +00:00
|
|
|
build clang fedora x86_64:
|
|
|
|
extends: 'build fedora x86_64'
|
|
|
|
variables:
|
|
|
|
CC: 'ccache clang'
|
|
|
|
CXX: 'ccache clang++'
|
2019-08-27 23:30:49 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
2019-08-26 10:57:16 +00:00
|
|
|
|
2018-11-21 15:24:00 +00:00
|
|
|
.test:
|
|
|
|
stage: 'test'
|
|
|
|
variables:
|
|
|
|
# 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-08-09 15:36:00 +00:00
|
|
|
width: 100
|
|
|
|
COLUMNS: 100
|
2018-11-21 15:24:00 +00:00
|
|
|
script:
|
|
|
|
- cd 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-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}
|
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:
|
|
|
|
- 'gst-build/build/meson-logs/'
|
2019-03-27 19:44:36 +00:00
|
|
|
- 'validate-logs'
|
2018-11-21 15:24:00 +00:00
|
|
|
reports:
|
|
|
|
junit:
|
2019-03-27 19:44:36 +00:00
|
|
|
- "validate-logs/*.xml"
|
2018-12-11 11:25:37 +00:00
|
|
|
# We disable the .build above, which this job usually depends upon for cerbero
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-03-27 02:26:17 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-examples"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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-08-27 11:26:28 +00:00
|
|
|
needs:
|
|
|
|
- 'build fedora x86_64'
|
2018-11-21 15:24:00 +00:00
|
|
|
dependencies:
|
|
|
|
- build fedora x86_64
|
|
|
|
|
|
|
|
check fedora:
|
|
|
|
extends: '.test fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst*"
|
2019-03-27 21:20:04 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "gst-integration-testsuites"
|
2019-04-04 10:32:46 +00:00
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-examples"
|
2019-04-06 16:45:22 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
2018-11-21 15:24:00 +00:00
|
|
|
|
2019-03-27 19:44:36 +00:00
|
|
|
integration testsuites fedora:
|
|
|
|
extends: '.test fedora x86_64'
|
|
|
|
before_script:
|
|
|
|
- rm -f gst-build/build/subprojects/gstreamer-vaapi/gst/vaapi/libgstvaapi.so
|
|
|
|
variables:
|
2019-05-01 13:50:58 +00:00
|
|
|
EXTRA_VALIDATE_ARGS: "--timeout-factor=2 --retry-on-failures --check-bugs"
|
2019-03-27 19:44:36 +00:00
|
|
|
TEST_SUITE: "validate ges"
|
2019-04-06 16:45:22 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
2019-04-07 22:00:02 +00:00
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
2019-03-27 19:44:36 +00:00
|
|
|
|
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
|
|
|
# Some suppression files are missing a newline at the end which messes things
|
|
|
|
# up when concatenating them. awk will add missing newlines (unlike cat)
|
2019-04-16 12:06:38 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAMESPACE == 'gstreamer'
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind core:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gstreamer\\..*"
|
2019-03-21 21:39:03 +00:00
|
|
|
only:
|
|
|
|
variables:
|
2019-05-14 01:51:15 +00:00
|
|
|
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-ci)$/
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind base:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-plugins-base\\..*"
|
2019-03-21 21:39:03 +00:00
|
|
|
only:
|
|
|
|
variables:
|
2019-05-14 01:51:15 +00:00
|
|
|
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-ci)$/
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind good:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-plugins-good\\..*"
|
2019-03-21 21:39:03 +00:00
|
|
|
only:
|
|
|
|
variables:
|
2019-05-14 01:51:15 +00:00
|
|
|
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-ci)$/
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind ugly:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-plugins-ugly\\..*"
|
2019-03-21 21:39:03 +00:00
|
|
|
only:
|
|
|
|
variables:
|
2019-05-14 01:51:15 +00:00
|
|
|
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-ugly|gst-ci)$/
|
2019-03-06 19:01:48 +00:00
|
|
|
|
|
|
|
valgrind bad:
|
|
|
|
extends: '.valgrind fedora x86_64'
|
|
|
|
variables:
|
|
|
|
TEST_SUITE: "check.gst-plugins-bad\\..*"
|
2019-03-21 21:39:03 +00:00
|
|
|
only:
|
|
|
|
variables:
|
2019-05-14 01:51:15 +00:00
|
|
|
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-plugins-bad|gst-ci)$/
|
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\\..*"
|
|
|
|
only:
|
|
|
|
variables:
|
2019-05-14 01:51:15 +00:00
|
|
|
- $CI_PROJECT_NAME =~ /^(gstreamer|gst-plugins-base|gst-plugins-good|gst-editing-services|gst-ci)$/
|
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
|
|
|
#
|
2019-04-01 02:24:46 +00:00
|
|
|
# Produces runtime and devel tarball packages for linux/android or .pkg for macos
|
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
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
|
|
|
- "manifest"
|
2018-11-16 02:47:34 +00:00
|
|
|
dependencies:
|
|
|
|
- "manifest"
|
|
|
|
variables:
|
|
|
|
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
|
|
|
|
CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
|
2018-12-09 02:35:26 +00:00
|
|
|
CCACHE_MAXSIZE: "1.7G"
|
2019-04-01 02:24:46 +00:00
|
|
|
CERBERO_HOME: "cerbero-build"
|
|
|
|
CERBERO_SOURCES: "cerbero-sources"
|
2018-11-16 02:47:34 +00:00
|
|
|
CERBERO_DEPS: "cerbero-deps.tar.gz"
|
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"
|
|
|
|
HAVE_CCACHE: "yes"
|
|
|
|
# used by macos packages as we only ever install to a fixed directory
|
|
|
|
CERBERO_OVERRIDDEN_DIST_DIR: ""
|
2018-11-16 02:47:34 +00:00
|
|
|
before_script:
|
|
|
|
# FIXME Wrong namespace
|
2019-01-10 09:39:13 +00:00
|
|
|
# Workaround build-tools having hardcoded internal path
|
2019-04-01 02:24:46 +00:00
|
|
|
- pwd
|
|
|
|
- mkdir -p ../../gstreamer
|
|
|
|
- ln -sf $(pwd) ../../gstreamer/cerbero
|
|
|
|
- mkdir -p ../../${CI_PROJECT_NAMESPACE}
|
|
|
|
- ln -sf $(pwd) ../../${CI_PROJECT_NAMESPACE}/cerbero
|
2018-11-16 02:47:34 +00:00
|
|
|
- rsync -aH /cerbero/ .
|
|
|
|
- test -f ${CERBERO_DEPS} && tar -C ${CERBERO_HOME} -xf ${CERBERO_DEPS}
|
2019-04-01 02:24:46 +00:00
|
|
|
- echo "home_dir = \"$(pwd)/${CERBERO_HOME}\"" >> localconf.cbc
|
|
|
|
- echo "local_sources = \"$(pwd)/${CERBERO_SOURCES}\"" >> localconf.cbc
|
2018-11-16 02:47:34 +00:00
|
|
|
- ./cerbero-uninstalled --self-update manifest.xml
|
|
|
|
script:
|
2019-04-01 02:24:46 +00:00
|
|
|
- test "x${HAVE_CCACHE}" = "xyes" && ccache -z
|
2019-03-11 09:12:01 +00:00
|
|
|
- $CERBERO $CERBERO_ARGS show-config
|
|
|
|
- $CERBERO $CERBERO_ARGS fetch-bootstrap --build-tools-only
|
|
|
|
- $CERBERO $CERBERO_ARGS fetch-package --deps gstreamer-1.0
|
2019-06-14 10:59:19 +00:00
|
|
|
- $CERBERO $CERBERO_ARGS fetch-cache --branch ${GST_UPSTREAM_BRANCH}
|
2019-06-05 05:49:13 +00:00
|
|
|
- test "x${CERBERO_OVERRIDDEN_DIST_DIR}" != "x"
|
|
|
|
&& test -d ${CERBERO_HOME}/dist/${ARCH}
|
|
|
|
&& mkdir -p ${CERBERO_OVERRIDDEN_DIST_DIR}
|
|
|
|
&& rsync -aH ${CERBERO_HOME}/dist/${ARCH}/ ${CERBERO_OVERRIDDEN_DIST_DIR}
|
2019-03-11 09:12:01 +00:00
|
|
|
- $CERBERO $CERBERO_ARGS bootstrap --offline --build-tools-only
|
2019-04-01 02:24:46 +00:00
|
|
|
- $CERBERO $CERBERO_ARGS package --offline ${CERBERO_PACKAGE_ARGS} -o $(pwd) gstreamer-1.0
|
|
|
|
- test "x${HAVE_CCACHE}" = "xyes" && ccache -s || true # eat the return value from the failing test
|
2019-03-03 21:57:16 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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:
|
|
|
|
- "${CCACHE_DIR}"
|
|
|
|
- "${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"
|
2018-11-16 02:47:34 +00:00
|
|
|
- "*.tar.bz2"
|
|
|
|
|
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
|
|
|
dependencies:
|
|
|
|
- 'manifest'
|
|
|
|
tags:
|
|
|
|
- 'docker'
|
|
|
|
- 'windows'
|
|
|
|
- '1607'
|
|
|
|
variables:
|
|
|
|
MESON_ARGS: >
|
|
|
|
${DEFAULT_MESON_ARGS}
|
|
|
|
-Dpython=disabled
|
|
|
|
-Dlibav=disabled
|
|
|
|
-Dvaapi=disabled
|
|
|
|
-Ddevtools=disabled
|
|
|
|
script:
|
2019-07-01 15:55:46 +00:00
|
|
|
- git clone https://gitlab.freedesktop.org/gstreamer/gst-build.git $env:CI_PROJECT_DIR/gst-build
|
|
|
|
- cd $env:CI_PROJECT_DIR/gst-build
|
|
|
|
- cp -r C:/subprojects/* subprojects/
|
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 &&
|
|
|
|
python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml &&
|
|
|
|
meson build $env:MESON_ARGS &&
|
|
|
|
ninja -C build"
|
2019-07-01 15:55:46 +00:00
|
|
|
# FIXME: extract builddir for tests
|
|
|
|
# There's a bug that prevents us from exporting artifacts with docker-windows
|
|
|
|
# executors. It has since been fixed in gitlab 12.1, but
|
|
|
|
# we are blocked from upgrading currently.
|
|
|
|
#
|
|
|
|
# Gitlab Runner issue: https://gitlab.com/gitlab-org/gitlab-runner/issues/4291
|
|
|
|
# Blocked upgrade issue: https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/6#note_192780
|
2018-11-25 18:38:06 +00:00
|
|
|
after_script:
|
2019-08-29 11:23:51 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
2019-08-27 23:30:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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'
|
|
|
|
script:
|
2019-07-01 15:55:46 +00:00
|
|
|
- git clone https://gitlab.freedesktop.org/gstreamer/gst-build.git $env:CI_PROJECT_DIR/gst-build
|
|
|
|
- cd $env:CI_PROJECT_DIR/gst-build
|
|
|
|
- cp -r C:/subprojects/* subprojects/
|
|
|
|
|
2018-11-25 18:38:06 +00:00
|
|
|
- $env:PATH += ";C:\msys64\usr\bin;C:\msys64\mingw64/bin;C:\msys64\mingw32/bin"
|
|
|
|
# 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-07-01 15:55:46 +00:00
|
|
|
- C:\msys64\usr\bin\bash -c "cd $env:CI_PROJECT_DIR/gst-build &&
|
2018-11-25 18:38:06 +00:00
|
|
|
python git-update --no-interaction --manifest=$env:CI_PROJECT_DIR/manifest.xml &&
|
|
|
|
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
|
2019-06-12 05:38:14 +00:00
|
|
|
stage: "pre-build"
|
2018-11-16 02:47:34 +00:00
|
|
|
script:
|
2019-03-11 09:12:01 +00:00
|
|
|
- $CERBERO $CERBERO_ARGS show-config
|
|
|
|
- $CERBERO $CERBERO_ARGS fetch-bootstrap --build-tools-only
|
|
|
|
- $CERBERO $CERBERO_ARGS fetch-package --deps gstreamer-1.0
|
|
|
|
- $CERBERO $CERBERO_ARGS bootstrap --offline --build-tools-only
|
|
|
|
- $CERBERO $CERBERO_ARGS build-deps --offline
|
2018-11-16 02:47:34 +00:00
|
|
|
gstreamer-1.0 gst-plugins-base-1.0 gst-plugins-good-1.0
|
|
|
|
gst-plugins-bad-1.0 gst-plugins-ugly-1.0 gst-rtsp-server-1.0
|
2019-06-05 13:54:17 +00:00
|
|
|
gst-libav-1.0 gst-validate gst-editing-services-1.0 libnice
|
2019-06-14 10:59:19 +00:00
|
|
|
- $CERBERO $CERBERO_ARGS fetch-cache --branch ${GST_UPSTREAM_BRANCH} --skip-fetch --job-id=${CI_JOB_ID}
|
2019-04-01 02:24:46 +00:00
|
|
|
- test "x${CERBERO_OVERRIDDEN_DIST_DIR}" != "x"
|
|
|
|
&& mkdir -p ${CERBERO_HOME}/dist/${ARCH}
|
|
|
|
&& rsync -aH ${CERBERO_OVERRIDDEN_DIST_DIR}/ ${CERBERO_HOME}/dist/${ARCH}
|
2018-11-16 02:47:34 +00:00
|
|
|
- tar -C ${CERBERO_HOME} -czf $CERBERO_DEPS
|
2019-01-08 18:22:02 +00:00
|
|
|
build-tools build-tools.cache
|
|
|
|
dist/${ARCH} ${ARCH}.cache
|
2018-11-16 02:47:34 +00:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
artifacts:
|
|
|
|
name: "${CI_JOB_NAME}_${CI_COMMIT_SHA}"
|
|
|
|
expire_in: '10 days'
|
|
|
|
when: 'always'
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
2019-04-01 02:24:46 +00:00
|
|
|
- "${CERBERO_HOME}/logs"
|
|
|
|
- "${CERBERO_HOME}/cerbero-deps.log"
|
2018-11-16 02:47:34 +00:00
|
|
|
- "${CERBERO_DEPS}"
|
|
|
|
|
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
|
|
|
|
2019-03-13 01:33:58 +00:00
|
|
|
.cerbero fedora x86_64:
|
|
|
|
extends: '.cerbero'
|
2018-12-09 20:11:35 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "linux.config"
|
|
|
|
|
2019-03-13 01:33:58 +00:00
|
|
|
cerbero fedora x86_64:
|
|
|
|
extends: '.cerbero fedora x86_64'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
|
|
|
- "cerbero deps fedora x86_64"
|
|
|
|
- "manifest"
|
2019-03-13 01:33:58 +00:00
|
|
|
dependencies:
|
|
|
|
- "cerbero deps fedora x86_64"
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
|
2018-12-09 23:19:06 +00:00
|
|
|
build cerbero fedora x86_64:
|
2019-03-13 01:33:58 +00:00
|
|
|
extends: '.cerbero fedora x86_64'
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-04-02 12:27:59 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
2019-04-06 16:45:22 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
2019-05-02 08:25:57 +00:00
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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 deps cross-android universal:
|
2018-12-18 02:58:39 +00:00
|
|
|
extends: '.cerbero deps'
|
|
|
|
variables:
|
|
|
|
CONFIG: "cross-android-universal.cbc"
|
|
|
|
ARCH: "android_universal"
|
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
.cerbero cross-android universal:
|
2018-12-18 02:58:39 +00:00
|
|
|
extends: '.cerbero'
|
|
|
|
variables:
|
|
|
|
CONFIG: "cross-android-universal.cbc"
|
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
cerbero cross-android universal:
|
|
|
|
extends: '.cerbero cross-android universal'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "cerbero deps cross-android universal"
|
2019-08-27 11:26:28 +00:00
|
|
|
- "manifest"
|
2018-12-18 02:58:39 +00:00
|
|
|
dependencies:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "cerbero deps cross-android universal"
|
2018-12-18 02:58:39 +00:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
build cerbero cross-android universal:
|
|
|
|
extends: '.cerbero cross-android universal'
|
2018-12-18 02:58:39 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-04-02 12:27:59 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
2019-04-06 16:45:22 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
2019-05-02 08:25:57 +00:00
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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"
|
2019-03-13 01:33:58 +00:00
|
|
|
ARCH: "windows_x86"
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2019-03-13 01:33:58 +00:00
|
|
|
.cerbero cross win32:
|
|
|
|
extends: '.cerbero'
|
2018-12-18 02:58:39 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "cross-win32.cbc"
|
2019-03-13 01:33:58 +00:00
|
|
|
|
|
|
|
cerbero cross win32:
|
|
|
|
extends: '.cerbero cross win32'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2019-09-10 09:08:18 +00:00
|
|
|
- "cerbero deps cross-windows x86"
|
2019-08-27 11:26:28 +00:00
|
|
|
- "manifest"
|
2019-03-13 01:33:58 +00:00
|
|
|
dependencies:
|
2019-09-10 09:08:18 +00:00
|
|
|
- "cerbero deps cross-windows x86"
|
2019-03-13 01:33:58 +00:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2018-12-18 02:58:39 +00:00
|
|
|
|
|
|
|
build cerbero cross win32:
|
2019-03-13 01:33:58 +00:00
|
|
|
extends: '.cerbero cross win32'
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-04-02 12:27:59 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
2019-04-06 16:45:22 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
2019-05-02 08:25:57 +00:00
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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"
|
2019-03-13 01:33:58 +00:00
|
|
|
ARCH: "windows_x86_64"
|
2018-12-18 02:58:39 +00:00
|
|
|
|
2019-03-13 01:33:58 +00:00
|
|
|
.cerbero cross win64:
|
|
|
|
extends: '.cerbero'
|
2018-12-18 02:58:39 +00:00
|
|
|
variables:
|
|
|
|
CONFIG: "cross-win64.cbc"
|
2019-03-13 01:33:58 +00:00
|
|
|
|
|
|
|
cerbero cross win64:
|
|
|
|
extends: '.cerbero cross win64'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2019-09-10 09:08:18 +00:00
|
|
|
- "cerbero deps cross-windows x86_64"
|
2019-08-27 11:26:28 +00:00
|
|
|
- "manifest"
|
2019-03-13 01:33:58 +00:00
|
|
|
dependencies:
|
2019-09-10 09:08:18 +00:00
|
|
|
- "cerbero deps cross-windows x86_64"
|
2019-03-13 01:33:58 +00:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2018-12-18 02:58:39 +00:00
|
|
|
|
|
|
|
build cerbero cross win64:
|
2019-03-13 01:33:58 +00:00
|
|
|
extends: '.cerbero cross win64'
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-04-02 12:27:59 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
2019-04-06 16:45:22 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
2019-05-02 08:25:57 +00:00
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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
|
2019-04-24 05:42:27 +00:00
|
|
|
- curl -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
|
|
|
|
- rm -f gstreamer-1.0-android-universal-*-runtime.tar.bz2
|
|
|
|
- mkdir ${GSTREAMER_ROOT_ANDROID}
|
|
|
|
- tar -C ${GSTREAMER_ROOT_ANDROID} -xf gstreamer-1.0-android-universal-*.tar.bz2
|
|
|
|
|
2019-03-28 01:15:18 +00:00
|
|
|
# gst-examples
|
2019-03-24 06:56:01 +00:00
|
|
|
- chmod +x ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew
|
|
|
|
- ${EXAMPLES_HOME}/gst-examples/playback/player/android/gradlew --no-search-upward --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/
|
|
|
|
|
|
|
|
# gst-docs android tutorials
|
2019-03-28 00:25:05 +00:00
|
|
|
- chmod +x ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew
|
|
|
|
- ${EXAMPLES_HOME}/gst-docs/examples/tutorials/android/gradlew --no-search-upward --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"
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "build cerbero cross-android universal"
|
2019-08-27 11:26:28 +00:00
|
|
|
- "manifest"
|
2019-03-24 06:56:01 +00:00
|
|
|
dependencies:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "build cerbero cross-android universal"
|
2019-03-24 06:56:01 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-04-02 12:27:59 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
2019-04-06 16:45:22 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
2019-04-04 10:32:46 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-integration-testsuites"
|
2019-05-02 08:25:57 +00:00
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
2019-05-14 16:03:49 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
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"
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "cerbero cross-android universal"
|
2019-08-27 11:26:28 +00:00
|
|
|
- "manifest"
|
2019-03-24 06:56:01 +00:00
|
|
|
dependencies:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "cerbero cross-android universal"
|
2019-03-24 06:56:01 +00:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
2019-05-14 16:03:49 +00:00
|
|
|
|
2019-04-01 02:24:46 +00:00
|
|
|
#
|
|
|
|
# Cerbero macOS X86_64 build
|
|
|
|
#
|
|
|
|
cerbero deps macos x86_64:
|
|
|
|
extends: '.cerbero deps'
|
|
|
|
variables:
|
|
|
|
ARCH: "darwin_x86_64"
|
|
|
|
CONFIG: "osx-x86-64.cbc"
|
|
|
|
HAVE_CCACHE: ""
|
|
|
|
CERBERO_OVERRIDDEN_DIST_DIR: "/Library/Frameworks/GStreamer.framework/Versions/1.0"
|
|
|
|
tags:
|
|
|
|
- gst-macos-10.14
|
|
|
|
|
|
|
|
.cerbero macos x86_64:
|
|
|
|
extends: '.cerbero'
|
|
|
|
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"
|
|
|
|
tags:
|
|
|
|
- gst-macos-10.14
|
|
|
|
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 macos x86_64:
|
|
|
|
extends: '.cerbero macos x86_64'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
|
|
|
- "cerbero deps macos x86_64"
|
|
|
|
- "manifest"
|
2019-04-01 02:24:46 +00:00
|
|
|
dependencies:
|
|
|
|
- "cerbero deps macos x86_64"
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
|
|
|
|
build cerbero macos x86_64:
|
|
|
|
extends: '.cerbero macos x86_64'
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
|
|
|
- $CI_PROJECT_NAME == "gst-integration-testsuite"
|
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
|
|
|
- $CI_PROJECT_NAME == "gst-sharp"
|
|
|
|
|
2019-06-02 07:17:04 +00:00
|
|
|
#
|
|
|
|
# Cerbero iOS build
|
|
|
|
#
|
2019-09-11 07:45:21 +00:00
|
|
|
cerbero deps cross-ios universal:
|
2019-06-02 07:17:04 +00:00
|
|
|
extends: '.cerbero deps'
|
|
|
|
variables:
|
|
|
|
ARCH: "ios_universal"
|
|
|
|
CONFIG: "cross-ios-universal.cbc"
|
|
|
|
CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v nowerror"
|
|
|
|
HAVE_CCACHE: ""
|
|
|
|
tags:
|
|
|
|
- gst-ios-12.2
|
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
.cerbero cross-ios universal:
|
2019-06-02 07:17:04 +00:00
|
|
|
extends: '.cerbero'
|
|
|
|
variables:
|
|
|
|
ARCH: "ios_universal"
|
|
|
|
CONFIG: "cross-ios-universal.cbc"
|
|
|
|
CERBERO_ARGS: "${DEFAULT_CERBERO_ARGS} -v nowerror"
|
|
|
|
CERBERO_PACKAGE_ARGS: ""
|
|
|
|
HAVE_CCACHE: ""
|
|
|
|
tags:
|
|
|
|
- gst-ios-12.2
|
|
|
|
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"
|
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
cerbero cross-ios universal:
|
|
|
|
extends: '.cerbero cross-ios universal'
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "cerbero deps cross-ios universal"
|
2019-08-27 11:26:28 +00:00
|
|
|
- "manifest"
|
2019-06-02 07:17:04 +00:00
|
|
|
dependencies:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "cerbero deps cross-ios universal"
|
2019-06-02 07:17:04 +00:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
build cerbero cross-ios universal:
|
|
|
|
extends: '.cerbero cross-ios universal'
|
2019-06-16 03:51:39 +00:00
|
|
|
when: 'manual'
|
2019-06-02 07:17:04 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
|
|
|
- $CI_PROJECT_NAME == "gst-integration-testsuite"
|
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
|
|
|
- $CI_PROJECT_NAME == "gst-docs"
|
|
|
|
- $CI_PROJECT_NAME == "gst-sharp"
|
|
|
|
|
2019-05-14 16:03:49 +00:00
|
|
|
documentation:
|
2019-08-07 16:40:27 +00:00
|
|
|
image: $FEDORA_IMAGE
|
2019-08-27 11:26:28 +00:00
|
|
|
needs:
|
2019-08-27 23:30:49 +00:00
|
|
|
- "build fedora x86_64"
|
2019-08-27 11:26:28 +00:00
|
|
|
- "manifest"
|
2019-05-14 16:03:49 +00:00
|
|
|
dependencies:
|
2019-08-27 23:30:49 +00:00
|
|
|
- 'build fedora x86_64'
|
2019-06-12 05:38:14 +00:00
|
|
|
stage: integrate
|
2019-05-14 16:03:49 +00:00
|
|
|
|
|
|
|
script:
|
2019-06-01 00:12:55 +00:00
|
|
|
- pip3 install --upgrade git+https://github.com/hotdoc/hotdoc.git
|
2019-05-14 16:03:49 +00:00
|
|
|
- cd gst-build/
|
|
|
|
- ./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:
|
|
|
|
paths:
|
|
|
|
- documentation/
|
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-integration-testsuite"
|
|
|
|
- $CI_PROJECT_NAME == "gst-python"
|
|
|
|
- $CI_PROJECT_NAME == "gst-sharp"
|
2019-05-24 15:32:16 +00:00
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
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
|
|
|
|
|
|
|
|
- curl -o clone_manifest_ref.py https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/${GST_UPSTREAM_BRANCH}/gitlab/clone_manifest_ref.py
|
|
|
|
- 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:
|
|
|
|
- gst-ios-12.2
|
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
cross-ios universal examples:
|
|
|
|
extends: ".cross-ios universal examples"
|
2019-09-12 03:05:37 +00:00
|
|
|
when: 'manual'
|
2019-08-28 16:00:28 +00:00
|
|
|
dependencies:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "build cerbero cross-ios universal"
|
2019-08-28 16:00:28 +00:00
|
|
|
except:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|
|
|
|
- $CI_PROJECT_NAME == "gst-build"
|
|
|
|
- $CI_PROJECT_NAME == "gst-omx"
|
|
|
|
- $CI_PROJECT_NAME == "gst-integration-testsuites"
|
|
|
|
- $CI_PROJECT_NAME == "gstreamer-vaapi"
|
|
|
|
|
2019-09-11 07:45:21 +00:00
|
|
|
cerbero cross-ios universal examples:
|
|
|
|
extends: ".cross-ios universal examples"
|
2019-09-12 03:05:37 +00:00
|
|
|
needs:
|
|
|
|
- "cerbero cross-ios universal"
|
|
|
|
- "manifest"
|
2019-08-28 16:00:28 +00:00
|
|
|
dependencies:
|
2019-09-11 07:45:21 +00:00
|
|
|
- "cerbero cross-ios universal"
|
2019-08-28 16:00:28 +00:00
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_PROJECT_NAME == "cerbero"
|