mirror of
https://github.com/internetee/registry.git
synced 2025-05-22 04:09:52 +02:00
added bundle to robot
This commit is contained in:
parent
a77b9edc92
commit
88a042f5e3
1 changed files with 14 additions and 13 deletions
27
bin/robot
27
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue