mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +00:00
.gitlab-ci.yml: Exercise both libgcrypt and gnutls crypto backends
Note that gnutls 3.8.2 packages is still under testing, so we tentatively pull in the build directly from koji. Signed-off-by: Daiki Ueno <dueno@src.gnome.org>
This commit is contained in:
parent
28486191b2
commit
b3f5823d12
@ -1,4 +1,4 @@
|
|||||||
image: registry.gitlab.gnome.org/gnome/libsecret/master:v2
|
image: registry.gitlab.gnome.org/gnome/libsecret/master:v3
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
@ -7,12 +7,21 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
CPPCHECK_OPTIONS: "--enable=warning --enable=style --enable=performance --enable=portability --std=c99 --template='{id}:{file}:{line},{severity},{message}'"
|
CPPCHECK_OPTIONS: "--enable=warning --enable=style --enable=performance --enable=portability --std=c99 --template='{id}:{file}:{line},{severity},{message}'"
|
||||||
|
|
||||||
|
.build:
|
||||||
|
parallel:
|
||||||
|
matrix:
|
||||||
|
- CRYPTO: libgcrypt
|
||||||
|
- CRYPTO: gnutls
|
||||||
|
- CRYPTO: disabled
|
||||||
|
|
||||||
fedora:Werror:
|
fedora:Werror:
|
||||||
stage: build
|
stage: build
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
before_script:
|
before_script:
|
||||||
- dbus-uuidgen --ensure
|
- dbus-uuidgen --ensure
|
||||||
script:
|
script:
|
||||||
- meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations -Dgtk_doc=false
|
- meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations -Dgtk_doc=false -Dcrypto=$CRYPTO
|
||||||
- meson compile -C _build
|
- meson compile -C _build
|
||||||
- eval `dbus-launch --sh-syntax`
|
- eval `dbus-launch --sh-syntax`
|
||||||
- meson test -C _build --print-errorlogs
|
- meson test -C _build --print-errorlogs
|
||||||
@ -23,11 +32,13 @@ fedora:Werror:
|
|||||||
|
|
||||||
fedora:asan:
|
fedora:asan:
|
||||||
stage: build
|
stage: build
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
before_script:
|
before_script:
|
||||||
- dbus-uuidgen --ensure
|
- dbus-uuidgen --ensure
|
||||||
script:
|
script:
|
||||||
- export LSAN_OPTIONS=suppressions=$PWD/build/lsan.supp
|
- export LSAN_OPTIONS=suppressions=$PWD/build/lsan.supp
|
||||||
- meson _build -Db_sanitize=address -Dgtk_doc=false -Dintrospection=false
|
- meson _build -Db_sanitize=address -Dgtk_doc=false -Dintrospection=false -Dcrypto=$CRYPTO
|
||||||
- meson compile -C _build
|
- meson compile -C _build
|
||||||
- eval `dbus-launch --sh-syntax`
|
- eval `dbus-launch --sh-syntax`
|
||||||
- meson test -C _build --print-errorlogs
|
- meson test -C _build --print-errorlogs
|
||||||
@ -38,10 +49,12 @@ fedora:asan:
|
|||||||
|
|
||||||
fedora:ubsan:
|
fedora:ubsan:
|
||||||
stage: build
|
stage: build
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
before_script:
|
before_script:
|
||||||
- dbus-uuidgen --ensure
|
- dbus-uuidgen --ensure
|
||||||
script:
|
script:
|
||||||
- meson _build -Db_sanitize=undefined -Dgtk_doc=false
|
- meson _build -Db_sanitize=undefined -Dgtk_doc=false -Dcrypto=$CRYPTO
|
||||||
- meson compile -C _build
|
- meson compile -C _build
|
||||||
- eval `dbus-launch --sh-syntax`
|
- eval `dbus-launch --sh-syntax`
|
||||||
- meson test -C _build --print-errorlogs
|
- meson test -C _build --print-errorlogs
|
||||||
@ -52,10 +65,12 @@ fedora:ubsan:
|
|||||||
|
|
||||||
fedora-static-analyzers/test:
|
fedora-static-analyzers/test:
|
||||||
stage: build
|
stage: build
|
||||||
|
extends:
|
||||||
|
- .build
|
||||||
before_script:
|
before_script:
|
||||||
- dbus-uuidgen --ensure
|
- dbus-uuidgen --ensure
|
||||||
script:
|
script:
|
||||||
- meson _build -Dgtk_doc=false
|
- meson _build -Dgtk_doc=false -Dcrypto=$CRYPTO
|
||||||
- meson compile -C _build --ninja-args scan-build
|
- meson compile -C _build --ninja-args scan-build
|
||||||
- cppcheck --force -q $CPPCHECK_OPTIONS libsecret/ egg/ tool/
|
- cppcheck --force -q $CPPCHECK_OPTIONS libsecret/ egg/ tool/
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM fedora:38
|
FROM fedora:39
|
||||||
|
|
||||||
RUN dnf update -y \
|
RUN dnf update -y \
|
||||||
&& dnf install -y \
|
&& dnf install -y \
|
||||||
@ -10,6 +10,7 @@ RUN dnf update -y \
|
|||||||
gi-docgen \
|
gi-docgen \
|
||||||
git \
|
git \
|
||||||
glib2-devel \
|
glib2-devel \
|
||||||
|
gnutls-devel \
|
||||||
gobject-introspection-devel \
|
gobject-introspection-devel \
|
||||||
lcov \
|
lcov \
|
||||||
libasan \
|
libasan \
|
||||||
|
Loading…
Reference in New Issue
Block a user