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
#
# 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