mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-01-14 12:12:08 +01:00
test-build: enable FEATURES=test for just the tested ebuilds
This commit is contained in:
parent
bb307c95fc
commit
9efcae2aa6
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ WARNED='0'
|
|||
FAILED='0'
|
||||
FEATURES='-ipc-sandbox -network-sandbox -pid-sandbox'
|
||||
export FEATURES
|
||||
[ -d '/etc/portage/env' ] || mkdir -p /etc/portage/env/
|
||||
printf 'FEATURES="%s test' "${FEATURES}" >> /etc/portage/env/features-test
|
||||
|
||||
pretend_build() {
|
||||
emerge --getbinpkg=y --buildpkg=n --jobs="$(nproc)" --load-average="$(nproc)" --verbose --pretend "${1}"
|
||||
|
|
@ -19,6 +21,7 @@ build() {
|
|||
for i in $(git --no-pager diff --name-only "$(git rev-parse --verify origin/master 2> /dev/null)" HEAD); do
|
||||
if [ "${i%.ebuild}" != "${i}" ]; then
|
||||
test_ebuild="$(printf '%s' "${i%.ebuild}" | awk -F'/' '{print "="$1"/"$3}')"
|
||||
printf '%s features-test' "${test_ebuild}" >> /etc/portage/package.env
|
||||
printf '%s looks like an ebuild, testing visibility\n' "${i}"
|
||||
if pretend_build "${test_ebuild}" ; then
|
||||
printf '%s appears to be unmasked, building deps\n' "${i}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue