fix: fail correctly sutty/gems#2
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
c20bc503e4
commit
ff02b4372a
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue