Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6500 from EOSIO/fix-return-codes-of-build-scripts
Browse files Browse the repository at this point in the history
Fix return codes of build scripts so that buildkite can fail properly
  • Loading branch information
b1bart authored Dec 18, 2018
2 parents b45a53e + 955476d commit 929317c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/generate_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ bash generate_tarball.sh ${NAME}.tar.gz

tar -xvzf ${NAME}.tar.gz -C ${PROJECT}
dpkg-deb --build ${PROJECT}
BUILDSTATUS=$?
mv ${PROJECT}.deb ${NAME}.deb
rm -r ${PROJECT}

exit $BUILDSTATUS
5 changes: 5 additions & 0 deletions scripts/generate_package.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ else
echo "Error, unknown package type. Use either ['brew', 'deb', 'rpm']."
exit -1
fi

BUILDSTATUS=$?

rm -r tmp

exit $BUILDSTATUS
3 changes: 3 additions & 0 deletions scripts/generate_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ ${DESC}
%files -f filenames.txt" &> ${PROJECT}.spec

rpmbuild -bb ${PROJECT}.spec
BUILDSTATUS=$?
mv ~/rpmbuild/RPMS/x86_64 ./
rm -r ${PROJECT} ~/rpmbuild/BUILD/filenames.txt ${PROJECT}.spec

exit $BUILDSTATUS

0 comments on commit 929317c

Please sign in to comment.