From 88a042f5e3d111a7e8b0ce99bd6348ec099f8611 Mon Sep 17 00:00:00 2001 From: Priit Tamboom Date: Fri, 10 Oct 2014 11:40:48 +0300 Subject: [PATCH] added bundle to robot --- bin/robot | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) 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