diff --git a/bin/robot b/bin/robot index c463b1bc0..344071d26 100755 --- a/bin/robot +++ b/bin/robot @@ -3,30 +3,31 @@ # Build and run everything for automatic tests # +# fail later set -o pipefail # cd to Rails root directory cd "$(dirname "$0")"; cd .. +# cp config/secrets-example.yml config/secrets.yml +# create manually config/database.yml + git pull origin master &> /dev/null git reset --hard &> /dev/null unset GIT_DIR GIT_WORK_TREE -# run rubocop -echo "RUBOCOP_RESULTS" -rubocop -echo "END_OF_RUBOCOP_RESULTS" - bundle install -echo "SECURITY_RESULTS" -bundle-audit update -bundle-audit -brakeman -echo "END_OF_SECURITY_RESULTS" +# run rubocop +echo "RUBOCOP_RESULTS" +bundle exec rubocop +echo "END_OF_RUBOCOP_RESULTS" -# cp config/secrets-example.yml config/secrets.yml -# create manually config/database.yml +echo "SECURITY_RESULTS" +bundle exec bundle-audit update +bundle exec bundle-audit +bundle exec brakeman +echo "END_OF_SECURITY_RESULTS" RAILS_ENV=test bundle exec rake db:drop RAILS_ENV=test bundle exec rake db:create @@ -44,4 +45,4 @@ RAILS_ENV=test ROBOT=true bundle exec rake test echo "END_OF_TEST_RESULTS" # update code review -rubycritic app lib +bundle exec rubycritic app lib