mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
robot: allow partial updates for test file
This commit is contained in:
parent
dc61766e88
commit
cec0bcb16b
3 changed files with 47 additions and 5 deletions
2
Gemfile
2
Gemfile
|
@ -83,7 +83,7 @@ group :development do
|
|||
|
||||
# rspec support for guard
|
||||
gem 'guard-rspec', '~> 4.3.1'
|
||||
# rubocop support for guard
|
||||
gem 'rubocop', '~> 0.26.1'
|
||||
gem 'guard-rubocop', '~> 1.1.0'
|
||||
|
||||
# for quick debugging
|
||||
|
|
11
Gemfile.lock
11
Gemfile.lock
|
@ -29,6 +29,8 @@ GEM
|
|||
tzinfo (~> 1.1)
|
||||
arel (5.0.1.20140414130214)
|
||||
ast (2.0.0)
|
||||
astrolabe (1.3.0)
|
||||
parser (>= 2.2.0.pre.3, < 3.0)
|
||||
axiom-types (0.1.1)
|
||||
descendants_tracker (~> 0.0.4)
|
||||
ice_nine (~> 0.11.0)
|
||||
|
@ -165,7 +167,7 @@ GEM
|
|||
paper_trail (3.0.6)
|
||||
activerecord (>= 3.0, < 5.0)
|
||||
activesupport (>= 3.0, < 5.0)
|
||||
parser (2.1.9)
|
||||
parser (2.2.0.pre.5)
|
||||
ast (>= 1.1, < 3.0)
|
||||
slop (~> 3.4, >= 3.4.5)
|
||||
pg (0.17.1)
|
||||
|
@ -243,9 +245,9 @@ GEM
|
|||
rspec-mocks (~> 3.0.0)
|
||||
rspec-support (~> 3.0.0)
|
||||
rspec-support (3.0.4)
|
||||
rubocop (0.23.0)
|
||||
json (>= 1.7.7, < 2)
|
||||
parser (~> 2.1.9)
|
||||
rubocop (0.26.1)
|
||||
astrolabe (~> 1.3)
|
||||
parser (>= 2.2.0.pre.4, < 3.0)
|
||||
powerpack (~> 0.0.6)
|
||||
rainbow (>= 1.99.1, < 3.0)
|
||||
ruby-progressbar (~> 1.4)
|
||||
|
@ -376,6 +378,7 @@ DEPENDENCIES
|
|||
rails (= 4.1.4)
|
||||
ransack (~> 1.3.0)
|
||||
rspec-rails (~> 3.0.2)
|
||||
rubocop (~> 0.26.1)
|
||||
rubycritic (~> 1.1.1)
|
||||
sass-rails (~> 4.0.3)
|
||||
sdoc (~> 0.4.0)
|
||||
|
|
39
bin/robot-audit
Executable file
39
bin/robot-audit
Executable file
|
@ -0,0 +1,39 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Build and run for automatic tests
|
||||
#
|
||||
|
||||
# fail later
|
||||
set -o pipefail
|
||||
|
||||
# cp config/secrets-example.yml config/secrets.yml
|
||||
# create manually config/database.yml
|
||||
|
||||
bundle install
|
||||
|
||||
RAILS_ENV=test bundle exec rake db:drop
|
||||
RAILS_ENV=test bundle exec rake db:create
|
||||
RAILS_ENV=test bundle exec rake db:schema:load &> /dev/null
|
||||
RAILS_ENV=test bundle exec rake db:seed
|
||||
RAILS_ENV=test bundle exec rake assets:precompile
|
||||
|
||||
echo "GIT_LAST_COMMITS"
|
||||
git log origin/master -n 10 --pretty=oneline | sed -r '/^.{40} Merge branch/d' | sed -r 's/^.{40}/Latest: /'
|
||||
echo "END_OF_GIT_LAST_COMMITS"
|
||||
|
||||
echo "RUBOCOP_RESULTS"
|
||||
bundle exec rubocop
|
||||
echo "END_OF_RUBOCOP_RESULTS"
|
||||
|
||||
echo "TEST_RESULTS"
|
||||
ROBOT=true bundle exec rake test
|
||||
echo "END_OF_TEST_RESULTS"
|
||||
|
||||
echo "SECURITY_RESULTS"
|
||||
bundle exec bundle-audit update
|
||||
bundle exec bundle-audit
|
||||
bundle exec brakeman
|
||||
echo "END_OF_SECURITY_RESULTS"
|
||||
|
||||
# update code review
|
||||
bundle exec rubycritic app lib
|
Loading…
Add table
Add a link
Reference in a new issue