Commit 61f5569b authored by Niels De Graef's avatar Niels De Graef

Merge branch 'wip/dueno/meson-ci' into 'master'

gitlab-ci: Use meson instead of autotools

See merge request !31
parents 7844baa7 339c19e7
......@@ -3,10 +3,10 @@ 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:28
image: fedora:latest
stage: build
before_script:
- dnf upgrade -y
......@@ -15,13 +15,12 @@ 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:28
image: fedora:latest
stage: build
before_script:
- dnf upgrade -y
......@@ -30,13 +29,12 @@ 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:28
image: fedora:latest
stage: build
before_script:
- dnf upgrade -y
......@@ -45,13 +43,12 @@ 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:28
image: fedora:latest
stage: build
before_script:
- dnf upgrade -y
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment