use tap format for output
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-02-15 10:40:45 -03:00
parent ca77a52c01
commit 14a689b4b7
2 changed files with 14 additions and 6 deletions

View file

@ -9,6 +9,7 @@ pipeline:
build_args: build_args:
- ALPINE_VERSION=${ALPINE_VERSION} - ALPINE_VERSION=${ALPINE_VERSION}
- BASE_IMAGE=registry.nulo.in/sutty/containers-sdk-ruby - BASE_IMAGE=registry.nulo.in/sutty/containers-sdk-ruby
cache_from: registry.nulo.in/sutty/containers-gem-compiler
username: sutty username: sutty
secrets: secrets:
- docker_password - docker_password

View file

@ -8,14 +8,20 @@ test -n "${PLATFORM}"
install -dm 755 -o builder -g builder cache gems install -dm 755 -o builder -g builder cache gems
find build/ -type f | echo "1..$(find build/ -type f | grep -v /.keep | wc -l)"
sed -re "s|^build/([^/]+)/(.*)|&\tbuilt/${ALPINE_VERSION}/\1/\2\t\1\t\2|" |
while read BUILD BUILT GEM_NAME GEM_VERSION; do
test -f "${BUILT}" && continue
FAILED="failed/${ALPINE_VERSION}/${GEM_NAME}/${GEM_VERSION}" find build/ -type f | grep -v /.keep | nl |
sed -re "s|\tbuild/([^/]+)/(.*)|&\tbuilt/${ALPINE_VERSION}/\1/\2\tfailed/${ALPINE_VERSION}/\1/\2\t\1\t\2|" |
while read NUMBER BUILD BUILT FAILED GEM_NAME GEM_VERSION; do
if test -f "${BUILT}" ; then
echo "ok ${NUMBER} - ${GEM_NAME} ${GEM_VERSION} already built, skipping"
continue
fi
test -f "${FAILED}" && continue if test -f "${FAILED}" ; then
echo "not ok ${NUMBER} - ${GEM_NAME} ${GEM_VERSION} failed previously"
continue
fi
unset EXTRA_PKGS EXTRA_GEMS GEM_COMPILER_FLAGS unset EXTRA_PKGS EXTRA_GEMS GEM_COMPILER_FLAGS
@ -36,6 +42,7 @@ find build/ -type f |
if test $? -ne 0 ; then if test $? -ne 0 ; then
BUILT="${FAILED}" BUILT="${FAILED}"
echo "not ok ${NUMBER} - ${GEM_NAME} ${GEM_VERSION} build failed"
fi fi
set -e set -e