Skip to content

Commit

Permalink
tests: Use Gentoo binary packages
Browse files Browse the repository at this point in the history
See https://www.gentoo.org/news/2023/12/29/Gentoo-binary.html

This greatly speeds up the installation of umockdev's build
dependencies.
  • Loading branch information
martinpitt committed Jan 5, 2024
1 parent a08e391 commit 7ab42b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/run-gentoo
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ $RUNC run --interactive ${OPTS:-} \
--volume `pwd`:/source:ro --volume gentooportage:/var/db/repos/gentoo \
--cap-add=CAP_SYS_ADMIN --cap-add=CAP_NET_ADMIN --cap-add=CAP_SYS_PTRACE \
docker.io/gentoo/stage3 /bin/sh -eux <<EOF
echo 'FEATURES="\${FEATURES} binpkg-request-signature"' >> /etc/portage/make.conf
# install build dependencies
ACCEPT_KEYWORDS="~*" emerge dev-util/umockdev --with-test-deps --onlydeps
ACCEPT_KEYWORDS="~*" emerge dev-util/umockdev --with-test-deps --onlydeps --getbinpkg
# install git, "meson dist" dependency
emerge dev-vcs/git
emerge --getbinpkg dev-vcs/git
git config --global safe.directory /source
Expand Down

0 comments on commit 7ab42b3

Please sign in to comment.