summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@src.gnome.org>2021-08-12 19:18:47 +0200
committerDaiki Ueno <dueno@src.gnome.org>2021-08-12 19:50:25 +0200
commit4017d2ec510d695bb53c4187a3f521cdb522da51 (patch)
tree9fe0170e4618a81a9787d19d307aef22f54c4ff7 /.gitlab-ci.yml
parenta804519e61f8dfbf165345cbda0bf8da5eef540c (diff)
downloadlibsecret-4017d2ec510d695bb53c4187a3f521cdb522da51.tar.gz
ci: Enable tpm2 in fedora:coverage, instead of fedora:Werror
This would give a better coverage report for the new TPM2 code. Signed-off-by: Daiki Ueno <dueno@src.gnome.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml25
1 files changed, 13 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e94e312..aad0fe4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,7 +3,7 @@ stages:
- deploy
variables:
- DEPENDENCIES: dbus-x11 diffutils gcc gjs meson ninja-build python3-dbus python3-gobject redhat-rpm-config tpm2-tss-devel
+ DEPENDENCIES: dbus-x11 diffutils gcc gjs meson ninja-build python3-dbus python3-gobject redhat-rpm-config
CPPCHECK_OPTIONS: "--enable=warning --enable=style --enable=performance --enable=portability --std=c99 --template='{id}:{file}:{line},{severity},{message}'"
fedora:Werror:
@@ -13,19 +13,12 @@ fedora:Werror:
- dnf upgrade -y
- dnf install -y 'dnf-command(builddep)'
- dnf builddep -y libsecret
- - dnf install -y $DEPENDENCIES swtpm swtpm-tools tpm2-abrmd
+ - dnf install -y $DEPENDENCIES
- dbus-uuidgen --ensure
script:
- - export XDG_CONFIG_HOME=$HOME/.config
- - /usr/share/swtpm/swtpm-create-user-config-files --root
- - mkdir -p ${XDG_CONFIG_HOME}/mytpm1
- - swtpm_setup --tpm2 --tpmstate $XDG_CONFIG_HOME/mytpm1 --createek --allow-signing --decryption --create-ek-cert --create-platform-cert --lock-nvram --overwrite --display
- - swtpm socket --tpm2 --tpmstate dir=$XDG_CONFIG_HOME/mytpm1 --flags startup-clear --ctrl type=tcp,port=2322 --server type=tcp,port=2321 --daemon
- - eval `dbus-launch --sh-syntax`
- - 'tpm2-abrmd --logger=stdout --tcti=swtpm: --session --allow-root --flush-all &'
- - 'export TCTI=tabrmd:bus_type=session'
- - meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations -Dtpm2=true
+ - meson _build -Dwerror=true -Dc_args=-Wno-error=deprecated-declarations
- meson compile -C _build
+ - eval `dbus-launch --sh-syntax`
- meson test -C _build
artifacts:
when: on_failure
@@ -95,12 +88,20 @@ fedora:coverage:
- dnf upgrade -y
- dnf install -y 'dnf-command(builddep)'
- dnf builddep -y libsecret
+ - dnf install -y $DEPENDENCIES swtpm swtpm-tools tpm2-abrmd tpm2-tss-devel
- dnf install -y $DEPENDENCIES lcov
- dbus-uuidgen --ensure
script:
- - meson _build -Db_coverage=true
+ - meson _build -Db_coverage=true -Dtpm2=true
- meson compile -C _build
- eval `dbus-launch --sh-syntax`
+ - export XDG_CONFIG_HOME=$HOME/.config
+ - /usr/share/swtpm/swtpm-create-user-config-files --root
+ - mkdir -p ${XDG_CONFIG_HOME}/mytpm1
+ - swtpm_setup --tpm2 --tpmstate $XDG_CONFIG_HOME/mytpm1 --createek --allow-signing --decryption --create-ek-cert --create-platform-cert --lock-nvram --overwrite --display
+ - swtpm socket --tpm2 --tpmstate dir=$XDG_CONFIG_HOME/mytpm1 --flags startup-clear --ctrl type=tcp,port=2322 --server type=tcp,port=2321 --daemon
+ - 'tpm2-abrmd --logger=stdout --tcti=swtpm: --session --allow-root --flush-all &'
+ - 'export TCTI=tabrmd:bus_type=session'
- meson test -C _build
- ninja coverage-html -C _build
coverage: '/^\s+lines.+:\s+([\d.]+\%)\s+/'