diff options
author | Michael Catanzaro <mcatanzaro@redhat.com> | 2022-07-26 14:07:13 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@redhat.com> | 2022-07-29 15:32:24 -0500 |
commit | ebcd3df8a5becaaa01ca15d094eed2daa2ade583 (patch) | |
tree | 5a6810f262b1d8ee697e60d5f4d25c260b9bca28 /.gitlab-ci.yml | |
parent | 215d7834a14538c6d4fd2ada7d0db3ef3885c1c8 (diff) | |
download | glib-networking-ebcd3df8a5becaaa01ca15d094eed2daa2ade583.tar.gz |
Use freedesktop-ci-templates
This is trendy, and we don't have to maintain our own container images
anymore.
https://freedesktop.pages.freedesktop.org/ci-templates/templates.html
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 69 |
1 files changed, 58 insertions, 11 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 80ac37d..0da8500 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,66 @@ -image: registry.gitlab.gnome.org/gnome/glib-networking/master:v20 +include: + - remote: 'https://gitlab.freedesktop.org/freedesktop/ci-templates/-/raw/c5626190ec14b475271288dda7a7dae8dbe0cd76/templates/fedora.yml' + +variables: + FDO_UPSTREAM_REPO: GNOME/glib-networking + +stages: + - prepare + - build + +.fedora.container.common: + variables: + FDO_DISTRIBUTION_TAG: '2022-07-29.4' + FDO_DISTRIBUTION_VERSION: 'latest' + +build.container.fedora@x86_64: + extends: + - '.fdo.container-build@fedora' + - '.fedora.container.common' + stage: prepare + variables: + GIT_STRATEGY: none + FDO_EXPIRES_AFTER: 8w + FDO_DISTRIBUTION_PACKAGES: >- + ca-certificates + clang-analyzer + gcc + gettext + lcov + libasan + meson + pkgconfig(glib-2.0) + pkgconfig(gio-2.0) + pkgconfig(gnutls) + pkgconfig(gobject-2.0) + pkgconfig(gsettings-desktop-schemas) + pkgconfig(libproxy-1.0) + pkgconfig(openssl) + pkgconfig(p11-kit-1) fedora-x86_64: + extends: + - '.fdo.distribution-image@fedora' + - '.fedora.container.common' stage: build variables: # Remove for PKCS11 logs, otherwise generates a lot of noise hitting gitlab's limit PKCS11SPY_PATH: disabled script: - cp .gitlab-ci/lcovrc ~/.lcovrc - - meson --prefix=$HOME/glib-networking-installed - -Db_coverage=true - -Dgnutls=enabled - -Dopenssl=enabled - -Dlibproxy=enabled - -Dgnome_proxy=enabled - -Ddebug_logs=true - -Dwerror=true - _build/ + - meson setup --prefix=$HOME/glib-networking-installed + -Db_coverage=true + -Dgnutls=enabled + -Dopenssl=enabled + -Dlibproxy=enabled + -Dgnome_proxy=enabled + -Ddebug_logs=true + -Dwerror=true + _build/ - meson compile -C _build/ - meson test -v -C _build/ --repeat=10 - meson install -C _build/ - - ninja -C _build coverage-html + - ninja -C _build/ coverage-html artifacts: paths: - _build/test-results @@ -28,6 +69,9 @@ fedora-x86_64: coverage: '/^\s+lines\.+:\s+([\d.]+\%)\s+/' fedora-x86_64-asan: + extends: + - '.fdo.distribution-image@fedora' + - '.fedora.container.common' tags: [ asan ] stage: build variables: @@ -50,6 +94,9 @@ fedora-x86_64-asan: when: on_failure fedora-x86_64-scan-build: + extends: + - '.fdo.distribution-image@fedora' + - '.fedora.container.common' stage: build script: - meson -Dgnutls=enabled |