ci: exercise credential helpers

Wire up credential helpers in our CI runs so that we can rest assured that they compile and (if tests are available) function correctly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Feb 18, 2025 at 08:46 UTC 63a597dd94079887a1b5ad72f64a8b0ee822dc27
4 files changed +9 -3
.github/workflows/main.yml
+1 -1
@@ -265,7 +265,7 @@ jobs:
265 run: pip install meson ninja
266 - name: Setup
267 shell: pwsh
268 - run: meson setup build -Dperl=disabled
268 + run: meson setup build -Dperl=disabled -Dcredential_helpers=wincred
269 - name: Compile
270 shell: pwsh
271 run: meson compile -C build
.gitlab-ci.yml
+1 -1
@@ -164,7 +164,7 @@ build:msvc-meson:
164 extends: .msvc-meson
165 stage: build
166 script:
167 - - meson setup build -Dperl=disabled
167 + - meson setup build -Dperl=disabled -Dcredential_helpers=wincred
168 - meson compile -C build
169 artifacts:
170 paths:
ci/install-dependencies.sh
+1 -1
@@ -58,7 +58,7 @@ ubuntu-*|i386/ubuntu-*|debian-*)
58 make libssl-dev libcurl4-openssl-dev libexpat-dev wget sudo default-jre \
59 tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl \
60 libemail-valid-perl libio-pty-perl libio-socket-ssl-perl libnet-smtp-ssl-perl libdbd-sqlite3-perl libcgi-pm-perl \
61 - libpcre2-dev meson ninja-build pkg-config \
61 + libsecret-1-dev libpcre2-dev meson ninja-build pkg-config \
62 ${CC_PACKAGE:-${CC:-gcc}} $PYTHON_PACKAGE
63
64 case "$distro" in
ci/lib.sh
+6
@@ -348,6 +348,9 @@ case "$jobname" in
348 linux32)
349 CC=gcc
350 ;;
351 +linux-meson)
352 + MESONFLAGS="$MESONFLAGS -Dcredential_helpers=libsecret,netrc"
353 + ;;
354 linux-musl-meson)
355 MESONFLAGS="$MESONFLAGS -Dtest_utf8_locale=C.UTF-8"
356 ;;
@@ -359,6 +362,9 @@ linux-asan-ubsan)
362 export NO_SVN_TESTS=LetsSaveSomeTime
363 MAKEFLAGS="$MAKEFLAGS NO_PYTHON=YepBecauseP4FlakesTooOften"
364 ;;
365 +osx-meson)
366 + MESONFLAGS="$MESONFLAGS -Dcredential_helpers=osxkeychain"
367 + ;;
368 esac
369
370 MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"