2018-11-08 10:32:14 +00:00
|
|
|
stages:
|
2018-11-23 16:45:31 +00:00
|
|
|
- 'preparation'
|
|
|
|
# Test just one basic build, if it succeeds proceed to test the rest
|
|
|
|
- 'build'
|
|
|
|
- 'test'
|
|
|
|
# Run multiple builds and tests, multi-distro, multi-arch
|
|
|
|
- 'full builds'
|
|
|
|
- 'full tests'
|
2018-11-08 10:32:14 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
2018-11-22 18:24:26 +00:00
|
|
|
DEFAULT_MESON_ARGS: >
|
2018-11-25 23:26:20 +00:00
|
|
|
--werror
|
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
|
|
|
|
|
|
|
manifest:
|
2018-11-21 15:25:29 +00:00
|
|
|
image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/alpine-manifest-build:10ffa6f1af6fed20a8857d2c7426d81cf162e3d1'
|
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:
|
|
|
|
expire_in: "2 days"
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
|
|
|
|
|
|
|
.build:
|
2018-11-23 16:45:31 +00:00
|
|
|
stage: 'full builds'
|
2018-11-23 16:59:04 +00:00
|
|
|
dependencies:
|
|
|
|
- "manifest"
|
2018-11-08 10:32:14 +00:00
|
|
|
variables:
|
|
|
|
CC: "ccache gcc"
|
|
|
|
CXX: "ccache g++"
|
|
|
|
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
|
|
|
|
CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
|
2018-11-21 13:47:18 +00:00
|
|
|
MAIN_DIR: "${CI_PROJECT_DIR}"
|
2018-11-22 18:24:26 +00:00
|
|
|
MESON_ARGS: "${DEFAULT_MESON_ARGS}"
|
2018-11-08 10:32:14 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
# Not sure why, but permission errors else
|
|
|
|
# https://gitlab.freedesktop.org/alatiera/gstreamer/-/jobs/41441
|
|
|
|
- cp -r /gst-build/ . && cd gst-build
|
|
|
|
- ./git-update --no-interaction --manifest="${CI_PROJECT_DIR}/manifest.xml"
|
|
|
|
- meson build/ $MESON_ARGS
|
|
|
|
- ninja -C build/
|
|
|
|
after_script:
|
|
|
|
- cd gst-build/
|
|
|
|
# Clean the artifacts packages to avoid copying "useless" build products.
|
|
|
|
- rm $(find build -name "*.o") $(find -name "*.a")
|
|
|
|
# Clean the .git repos since we won't need them anymore
|
|
|
|
- rm -rf subprojects/*/.git/
|
|
|
|
- rm -rf build/subprojects/*/.git/
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- "${CCACHE_DIR}"
|
|
|
|
artifacts:
|
|
|
|
expire_in: 6hours
|
|
|
|
when: always
|
|
|
|
paths:
|
|
|
|
- "manifest.xml"
|
2018-11-09 19:29:41 +00:00
|
|
|
# - "gst-build/"
|
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'
|
2018-11-23 16:48:11 +00:00
|
|
|
image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora-build:2414895a53408ed8a0410a52560f8090b3f74696'
|
2018-11-08 10:32:14 +00:00
|
|
|
|
2018-11-23 16:48:11 +00:00
|
|
|
build android arm64 api28:
|
2018-11-22 19:21:20 +00:00
|
|
|
extends: '.build'
|
2018-11-23 16:48:11 +00:00
|
|
|
image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/ubuntu-build:a1726fee5841b776fcdaeda2e0ad628ce037a3c6'
|
2018-11-22 19:21:20 +00:00
|
|
|
variables:
|
|
|
|
MESON_ARGS: >
|
|
|
|
-Dbad=enabled
|
|
|
|
-Dbad:androidmedia=enabled
|
|
|
|
--cross-file /android_arm64_28.txt
|