mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-07 12:01:54 +02:00
this should work better
This commit is contained in:
parent
e577a361a1
commit
7cebd91e7a
1 changed files with 4 additions and 5 deletions
|
|
@ -3,12 +3,11 @@ FAILED="0"
|
|||
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
|
||||
printf "%s looks like an ebuild, testing\n" "${i}"
|
||||
if FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" ACCEPT_KEYWORDS="~amd64" emerge --getbinpkg=y --buildpkg=n --jobs="$(nproc)" --load-average="$(nproc)" --verbose "$(printf '%s' "${i%.ebuild}" | awk -F'/' '{print "="$1"/"$3}')" --pretend; then
|
||||
# This will test arch and ~arch but not no keywords
|
||||
printf '%s' "${i%.ebuild}" | awk -F'/' '{print "="$1"/"$3"}' >> /etc/portage/package.accept_keywords
|
||||
if FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs="$(nproc)" --load-average="$(nproc)" --verbose "$(printf '%s' "${i%.ebuild}" | awk -F'/' '{print "="$1"/"$3}')" --pretend; then
|
||||
printf '%s appears to be unmasked, build testing' "${i}"
|
||||
printf 'building deps for %s' "${i}"
|
||||
FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs="$(nproc)" --load-average="$(nproc)" --verbose "$(printf '%s' "${i%.ebuild}" | awk -F'/' '{print "="$1"/"$3}')" --onlydeps
|
||||
printf '%s building now' "${i}"
|
||||
if FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" ACCEPT_KEYWORDS="~amd64" emerge --getbinpkg=y --buildpkg=n --jobs="$(nproc)" --load-average="$(nproc)" --verbose "$(printf '%s' "${i%.ebuild}" | awk -F'/' '{print "="$1"/"$3}')"; then
|
||||
if FEATURES="-ipc-sandbox -network-sandbox -pid-sandbox" emerge --getbinpkg=y --buildpkg=n --jobs="$(nproc)" --load-average="$(nproc)" --verbose "$(printf '%s' "${i%.ebuild}" | awk -F'/' '{print "="$1"/"$3}')"; then
|
||||
printf '%s build SUCCESS\n' "${i}"
|
||||
else
|
||||
printf '%s build FAILED\n' "${i}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue