libsecret/.gitlab-ci.yml

77 lines
1.9 KiB
YAML
Raw Normal View History

2018-06-01 10:42:48 +00:00
stages:
- build
- deploy
variables:
DEPENDENCIES: dbus-x11 gcc gjs meson ninja-build python3-dbus python3-gobject redhat-rpm-config
2018-06-01 10:42:48 +00:00
fedora:Werror:
image: fedora:latest
2018-06-01 10:42:48 +00:00
stage: build
before_script:
- dnf upgrade -y
2018-06-01 10:42:48 +00:00
- dnf install -y 'dnf-command(builddep)'
- dnf builddep -y libsecret
- dnf install -y $DEPENDENCIES
- dbus-uuidgen --ensure
script:
- meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations
2018-06-01 10:42:48 +00:00
- eval `dbus-launch --sh-syntax`
- meson test -C _build
2018-06-01 10:42:48 +00:00
fedora:asan:
image: fedora:latest
2018-06-01 10:42:48 +00:00
stage: build
before_script:
- dnf upgrade -y
2018-06-01 10:42:48 +00:00
- dnf install -y 'dnf-command(builddep)'
- dnf builddep -y libsecret
- dnf install -y $DEPENDENCIES libasan
- dbus-uuidgen --ensure
script:
- meson _build -Dsanitize=address
2018-06-01 10:42:48 +00:00
- eval `dbus-launch --sh-syntax`
- meson test -C _build
2018-06-01 10:42:48 +00:00
fedora:ubsan:
image: fedora:latest
2018-06-01 10:42:48 +00:00
stage: build
before_script:
- dnf upgrade -y
2018-06-01 10:42:48 +00:00
- dnf install -y 'dnf-command(builddep)'
- dnf builddep -y libsecret
- dnf install -y $DEPENDENCIES libubsan
- dbus-uuidgen --ensure
script:
- meson _build -Dsanitize=undefined
2018-06-01 10:42:48 +00:00
- eval `dbus-launch --sh-syntax`
- meson test -C _build
2018-06-01 10:42:48 +00:00
fedora:coverage:
image: fedora:latest
2018-06-01 10:42:48 +00:00
stage: build
before_script:
- dnf upgrade -y
2018-06-01 10:42:48 +00:00
- dnf install -y 'dnf-command(builddep)'
- dnf builddep -y libsecret
- dnf install -y $DEPENDENCIES lcov
- dbus-uuidgen --ensure
script:
- meson _build -Db_coverage=true
2018-06-01 10:42:48 +00:00
- eval `dbus-launch --sh-syntax`
- meson test -C _build
- ninja coverage-html -C _build
2018-06-01 10:42:48 +00:00
coverage: '/^\s+lines.+:\s+([\d.]+\%)\s+/'
artifacts:
name: "libsecret-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
paths:
- _build/meson-logs/coveragereport/
2018-06-01 10:42:48 +00:00
pages:
stage: deploy
script:
- mv _build/meson-logs/coveragereport/ public/
2018-06-01 10:42:48 +00:00
artifacts:
paths:
- public