fix: fail correctly sutty/gems#2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-02-04 14:21:42 -03:00
parent c20bc503e4
commit ff02b4372a

View file

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
set -o pipefail
test -n "${HTTP_BASIC_USER}" test -n "${HTTP_BASIC_USER}"
test -n "${HTTP_BASIC_PASSWORD}" test -n "${HTTP_BASIC_PASSWORD}"
@ -45,10 +46,11 @@ find build/ -type f | grep -v /.keep | nl |
EXTRA_GEMS="${EXTRA_GEMS}" \ EXTRA_GEMS="${EXTRA_GEMS}" \
GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \ GEM_COMPILER_FLAGS="${GEM_COMPILER_FLAGS}" \
/usr/local/bin/bootstrap 2>&1 | tee -a build_log /usr/local/bin/bootstrap 2>&1 | tee -a build_log
status=$?
echo '```' >> build_log echo '```' >> build_log
if test $? -ne 0 ; then if test $status -ne 0 ; then
BUILT="${FAILED}" BUILT="${FAILED}"
echo "not ok ${NUMBER} - ${GEM_NAME} ${GEM_VERSION} build failed" echo "not ok ${NUMBER} - ${GEM_NAME} ${GEM_VERSION} build failed"