diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-09-15 14:06:08 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-09-16 09:35:33 +0200 |
commit | 727410048f7993b58973b9b1e0c6d89190440cec (patch) | |
tree | 2f9957720c4e88d2e70c8169330cf634b0d264d5 | |
parent | aee12967ee263bea514ecf30fed4c331b6454080 (diff) | |
download | ModemManager-727410048f7993b58973b9b1e0c6d89190440cec.tar.gz |
ci: add meson build test
The system template is updated to add new packages required at build
time:
* libdbus-1-dev is added so that we can autodetect the service
directory path via the installed pkg-config file.
* udev is added so that we can autodetect the udev rules directory
path via the installed pkg-config file.
* policykit-1 is added so that the i18n operation merging policy
files is able to use the installed ITS files.
* bash-completion is added to enable the feature in the meson build.
The 'dist' step in the test is fully skipped for now, as the meson
port doesn't fully support running all unit tests successfully.
-rw-r--r-- | .gitlab-ci.yml | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 41d2c8e53..52fc9bf8d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,13 +12,14 @@ stages: variables: FDO_UPSTREAM_REPO: mobile-broadband/ModemManager FDO_DISTRIBUTION_VERSION: '20.04' - FDO_DISTRIBUTION_TAG: '2021-07-28.2' + FDO_DISTRIBUTION_TAG: '2021-09-16.1' FDO_DISTRIBUTION_PACKAGES: ca-certificates git gcc autoconf automake libtool libgettextpo-dev libgirepository1.0-dev libglib2.0-dev libgudev-1.0-dev python3-dbus python3-gi autopoint xsltproc dbus gettext gtk-doc-tools libglib2.0-doc gobject-introspection python-is-python3 libsystemd-dev libpolkit-gobject-1-dev valac meson ninja-build + libdbus-1-dev bash-completion udev policykit-1 build container: extends: @@ -236,3 +237,37 @@ build-default-artifacts: - /builds/$CI_PROJECT_ROOT_NAMESPACE/$CI_PROJECT_NAME/$CI_PROJECT_NAME-*.tar.xz - /builds/$CI_PROJECT_ROOT_NAMESPACE/$CI_PROJECT_NAME/pkg_hash.txt expire_in: 2 days + +build-meson-release: + stage: build + extends: + - .fdo.distribution-image@ubuntu + - .common_variables + only: + - master + - merge_requests + - tags + - schedules + script: + - git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libmbim.git + - pushd libmbim + - meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=enabled -Dbash_completion=false + - ninja -C build + - ninja -C build install + - popd + - git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libqrtr-glib.git + - pushd libqrtr-glib + - meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=enabled + - ninja -C build + - ninja -C build install + - popd + - git clone --depth 1 https://gitlab.freedesktop.org/mobile-broadband/libqmi.git + - pushd libqmi + - meson setup build --prefix=/usr -Dgtk_doc=false -Dintrospection=enabled -Dbash_completion=false -Dmbim_qmux=enabled -Dqrtr=enabled -Dcollection=basic + - ninja -C build + - ninja -C build install + - popd + - meson setup build --buildtype=release --prefix=/usr -Dwerror=true -Dgtk_doc=false -Dintrospection=enabled -Dqmi=enabled -Dmbim=enabled -Dqrtr=enabled -Dpolkit=strict -Dsystemd_suspend_resume=true -Dsystemdsystemunitdir=/lib/systemd/system + - ninja -C build + - ninja -C build install + - ninja -C build uninstall |