2018-06-01 10:42:48 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
|
|
|
variables:
|
2020-03-10 13:05:44 +00:00
|
|
|
DEPENDENCIES: dbus-x11 diffutils gcc gjs meson ninja-build python3-dbus python3-gobject redhat-rpm-config
|
2018-06-01 10:42:48 +00:00
|
|
|
|
|
|
|
fedora:Werror:
|
2019-06-05 09:39:30 +00:00
|
|
|
image: fedora:latest
|
2018-06-01 10:42:48 +00:00
|
|
|
stage: build
|
|
|
|
before_script:
|
2018-07-24 14:14:03 +00:00
|
|
|
- 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:
|
2019-06-05 09:46:15 +00:00
|
|
|
- meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations
|
2018-06-01 10:42:48 +00:00
|
|
|
- eval `dbus-launch --sh-syntax`
|
2019-06-05 09:46:15 +00:00
|
|
|
- meson test -C _build
|
2020-03-10 12:53:44 +00:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- _build/meson-logs/testlog.txt
|
2018-06-01 10:42:48 +00:00
|
|
|
|
|
|
|
fedora:asan:
|
2019-06-05 09:39:30 +00:00
|
|
|
image: fedora:latest
|
2018-06-01 10:42:48 +00:00
|
|
|
stage: build
|
|
|
|
before_script:
|
2018-07-24 14:14:03 +00:00
|
|
|
- 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:
|
2019-06-05 09:46:15 +00:00
|
|
|
- meson _build -Dsanitize=address
|
2018-06-01 10:42:48 +00:00
|
|
|
- eval `dbus-launch --sh-syntax`
|
2019-06-05 09:46:15 +00:00
|
|
|
- meson test -C _build
|
2020-03-10 12:53:44 +00:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- _build/meson-logs/testlog.txt
|
2018-06-01 10:42:48 +00:00
|
|
|
|
|
|
|
fedora:ubsan:
|
2019-06-05 09:39:30 +00:00
|
|
|
image: fedora:latest
|
2018-06-01 10:42:48 +00:00
|
|
|
stage: build
|
|
|
|
before_script:
|
2018-07-24 14:14:03 +00:00
|
|
|
- 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:
|
2019-06-05 09:46:15 +00:00
|
|
|
- meson _build -Dsanitize=undefined
|
2018-06-01 10:42:48 +00:00
|
|
|
- eval `dbus-launch --sh-syntax`
|
2019-06-05 09:46:15 +00:00
|
|
|
- meson test -C _build
|
2020-03-10 12:53:44 +00:00
|
|
|
artifacts:
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- _build/meson-logs/testlog.txt
|
2018-06-01 10:42:48 +00:00
|
|
|
|
|
|
|
fedora:coverage:
|
2019-06-05 09:39:30 +00:00
|
|
|
image: fedora:latest
|
2018-06-01 10:42:48 +00:00
|
|
|
stage: build
|
|
|
|
before_script:
|
2018-07-24 14:14:03 +00:00
|
|
|
- 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:
|
2019-06-05 09:46:15 +00:00
|
|
|
- meson _build -Db_coverage=true
|
2018-06-01 10:42:48 +00:00
|
|
|
- eval `dbus-launch --sh-syntax`
|
2019-06-05 09:46:15 +00:00
|
|
|
- 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}"
|
2020-03-10 12:53:44 +00:00
|
|
|
when: on_success
|
2018-06-01 10:42:48 +00:00
|
|
|
paths:
|
2019-06-05 09:46:15 +00:00
|
|
|
- _build/meson-logs/coveragereport/
|
2019-06-09 06:27:03 +00:00
|
|
|
# https://github.com/linux-test-project/lcov/issues/58
|
|
|
|
allow_failure: true
|
2018-06-01 10:42:48 +00:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
2019-06-09 07:31:03 +00:00
|
|
|
- mv _build/meson-logs/coveragereport/ public/
|
2018-06-01 10:42:48 +00:00
|
|
|
artifacts:
|
2019-06-09 07:31:03 +00:00
|
|
|
when: on_success
|
2018-06-01 10:42:48 +00:00
|
|
|
paths:
|
|
|
|
- public
|
2019-06-09 07:31:03 +00:00
|
|
|
# https://github.com/linux-test-project/lcov/issues/58
|
|
|
|
allow_failure: true
|