added bundle to robot

This commit is contained in:
Priit Tamboom 2014-10-10 11:40:48 +03:00
parent a77b9edc92
commit 88a042f5e3

View file

@ -3,30 +3,31 @@
# Build and run everything for automatic tests # Build and run everything for automatic tests
# #
# fail later
set -o pipefail set -o pipefail
# cd to Rails root directory # cd to Rails root directory
cd "$(dirname "$0")"; cd .. cd "$(dirname "$0")"; cd ..
# cp config/secrets-example.yml config/secrets.yml
# create manually config/database.yml
git pull origin master &> /dev/null git pull origin master &> /dev/null
git reset --hard &> /dev/null git reset --hard &> /dev/null
unset GIT_DIR GIT_WORK_TREE unset GIT_DIR GIT_WORK_TREE
# run rubocop
echo "RUBOCOP_RESULTS"
rubocop
echo "END_OF_RUBOCOP_RESULTS"
bundle install bundle install
echo "SECURITY_RESULTS" # run rubocop
bundle-audit update echo "RUBOCOP_RESULTS"
bundle-audit bundle exec rubocop
brakeman echo "END_OF_RUBOCOP_RESULTS"
echo "END_OF_SECURITY_RESULTS"
# cp config/secrets-example.yml config/secrets.yml echo "SECURITY_RESULTS"
# create manually config/database.yml 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:drop
RAILS_ENV=test bundle exec rake db:create 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" echo "END_OF_TEST_RESULTS"
# update code review # update code review
rubycritic app lib bundle exec rubycritic app lib