mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 12:48:51 +00:00
gitlab-ci: Use meson instead of autotools
This commit is contained in:
parent
b4c909b8bf
commit
339c19e7ed
@ -3,7 +3,7 @@ stages:
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
DEPENDENCIES: dbus-x11 gcc gjs make python3-dbus python3-gobject redhat-rpm-config
|
||||
DEPENDENCIES: dbus-x11 gcc gjs meson ninja-build python3-dbus python3-gobject redhat-rpm-config
|
||||
|
||||
fedora:Werror:
|
||||
image: fedora:latest
|
||||
@ -15,10 +15,9 @@ fedora:Werror:
|
||||
- dnf install -y $DEPENDENCIES
|
||||
- dbus-uuidgen --ensure
|
||||
script:
|
||||
- ./autogen.sh --disable-dependency-tracking --enable-strict
|
||||
- make -j$(nproc) V=1
|
||||
- meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations
|
||||
- eval `dbus-launch --sh-syntax`
|
||||
- make -j$(nproc) V=1 distcheck
|
||||
- meson test -C _build
|
||||
|
||||
fedora:asan:
|
||||
image: fedora:latest
|
||||
@ -30,10 +29,9 @@ fedora:asan:
|
||||
- dnf install -y $DEPENDENCIES libasan
|
||||
- dbus-uuidgen --ensure
|
||||
script:
|
||||
- ./autogen.sh --disable-dependency-tracking CFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' CXXFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' LDFLAGS='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' LIBS='-lasan -ldl -lpthread'
|
||||
- make -j$(nproc) V=1
|
||||
- meson _build -Dsanitize=address
|
||||
- eval `dbus-launch --sh-syntax`
|
||||
- make -j$(nproc) V=1 DISABLE_HARD_ERRORS=1 XFAIL_TESTS="\$(JS_TESTS) \$(PY_TESTS)" check
|
||||
- meson test -C _build
|
||||
|
||||
fedora:ubsan:
|
||||
image: fedora:latest
|
||||
@ -45,10 +43,9 @@ fedora:ubsan:
|
||||
- dnf install -y $DEPENDENCIES libubsan
|
||||
- dbus-uuidgen --ensure
|
||||
script:
|
||||
- ./autogen.sh --disable-dependency-tracking CFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' CXXFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' LDFLAGS='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' LIBS='-lubsan -ldl -lpthread'
|
||||
- make -j$(nproc) V=1
|
||||
- meson _build -Dsanitize=undefined
|
||||
- eval `dbus-launch --sh-syntax`
|
||||
- make -j$(nproc) V=1 check
|
||||
- meson test -C _build
|
||||
|
||||
fedora:coverage:
|
||||
image: fedora:latest
|
||||
@ -60,21 +57,20 @@ fedora:coverage:
|
||||
- dnf install -y $DEPENDENCIES lcov
|
||||
- dbus-uuidgen --ensure
|
||||
script:
|
||||
- ./autogen.sh --disable-dependency-tracking --enable-coverage
|
||||
- make -j$(nproc) V=1
|
||||
- meson _build -Db_coverage=true
|
||||
- eval `dbus-launch --sh-syntax`
|
||||
- make -j$(nproc) V=1 check
|
||||
- make coverage
|
||||
- meson test -C _build
|
||||
- ninja coverage-html -C _build
|
||||
coverage: '/^\s+lines.+:\s+([\d.]+\%)\s+/'
|
||||
artifacts:
|
||||
name: "libsecret-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
|
||||
paths:
|
||||
- build/coverage/
|
||||
- _build/meson-logs/coveragereport/
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
script:
|
||||
- mv build/coverage/ public/
|
||||
- mv _build/meson-logs/coveragereport/ public/
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
Loading…
Reference in New Issue
Block a user