mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Robot: exit with correct error code
This commit is contained in:
parent
cec0bcb16b
commit
bb50ec2a9f
1 changed files with 9 additions and 0 deletions
|
@ -23,17 +23,26 @@ echo "END_OF_GIT_LAST_COMMITS"
|
|||
|
||||
echo "RUBOCOP_RESULTS"
|
||||
bundle exec rubocop
|
||||
RCODE=$?
|
||||
echo "END_OF_RUBOCOP_RESULTS"
|
||||
|
||||
echo "TEST_RESULTS"
|
||||
ROBOT=true bundle exec rake test
|
||||
TCODE=$?
|
||||
echo "END_OF_TEST_RESULTS"
|
||||
|
||||
echo "SECURITY_RESULTS"
|
||||
bundle exec bundle-audit update
|
||||
bundle exec bundle-audit
|
||||
BCODE=$?
|
||||
bundle exec brakeman
|
||||
echo "END_OF_SECURITY_RESULTS"
|
||||
|
||||
# update code review
|
||||
bundle exec rubycritic app lib
|
||||
|
||||
if [ $RCODE == 0 ] && [ $TCODE == 0 ] &&[ $BCODE == 0 ]; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue