[libsecret/wip/dueno/meson-ci] build: Switch gitlab CI to using meson
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret/wip/dueno/meson-ci] build: Switch gitlab CI to using meson
- Date: Fri, 25 Jan 2019 12:20:43 +0000 (UTC)
commit 6f0efea31a7ad90d28f890786345e7cf9cfdb2dd
Author: Daiki Ueno <dueno src gnome org>
Date: Fri Jan 25 13:19:44 2019 +0100
build: Switch gitlab CI to using meson
.gitlab-ci.yml | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4d03377..91fcb8c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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 python3-dbus python3-gobject redhat-rpm-config
fedora:Werror:
image: fedora:28
@@ -15,10 +15,10 @@ fedora:Werror:
- dnf install -y $DEPENDENCIES
- dbus-uuidgen --ensure
script:
- - ./autogen.sh --disable-dependency-tracking --enable-strict
- - make -j$(nproc) V=1
+ - meson . _build
+ - ninja -j$(nproc) -C _build -v
- eval `dbus-launch --sh-syntax`
- - make -j$(nproc) V=1 distcheck
+ - ninja -j$(nproc) -C _build test
fedora:asan:
image: fedora:28
@@ -30,10 +30,10 @@ 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 -Dc_args='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE'
-Dcpp_args='-fsanitize=address -g -fno-common -U_FORTIFY_SOURCE' -Dc_link_args='-fsanitize=address -g
-fno-common -U_FORTIFY_SOURCE' LIBS='-lasan -ldl -lpthread'
+ - ninja -j$(nproc) -C _build -v
- eval `dbus-launch --sh-syntax`
- - make -j$(nproc) V=1 DISABLE_HARD_ERRORS=1 XFAIL_TESTS="\$(JS_TESTS) \$(PY_TESTS)" check
+ - ninja -j$(nproc) -C _build test
fedora:ubsan:
image: fedora:28
@@ -45,10 +45,10 @@ 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 -Dc_args='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE'
-Dcpp_args='-fsanitize=undefined -g -fno-common -U_FORTIFY_SOURCE' -Dc_link_args='-fsanitize=undefined -g
-fno-common -U_FORTIFY_SOURCE' LIBS='-lubsan -ldl -lpthread'
+ - ninja -j$(nproc) -C _build -v
- eval `dbus-launch --sh-syntax`
- - make -j$(nproc) V=1 check
+ - ninja -j$(nproc) -C _build test
fedora:coverage:
image: fedora:28
@@ -60,21 +60,21 @@ 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
+ - ninja -j$(nproc) -C _build -v
- eval `dbus-launch --sh-syntax`
- - make -j$(nproc) V=1 check
- - make coverage
+ - ninja -j$(nproc) -C _build test
+ - ninja -j$(nproc) -C _build coverage-html
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]