mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Robot: move rubocop to top to find syntax errors early
This commit is contained in:
parent
bf80cba618
commit
ae44f04cb4
1 changed files with 5 additions and 5 deletions
10
bin/robot
10
bin/robot
|
@ -11,6 +11,11 @@ git pull origin master
|
||||||
git reset --hard
|
git reset --hard
|
||||||
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 --deployment
|
bundle install --deployment
|
||||||
|
|
||||||
# cp config/secrets-example.yml config/secrets.yml
|
# cp config/secrets-example.yml config/secrets.yml
|
||||||
|
@ -26,11 +31,6 @@ echo "GIT_LAST_COMMITS"
|
||||||
git log origin/master -n 15 --pretty=oneline | sed -r '/^.{40} Merge branch/d' | sed -r 's/^.{40}/Latests: /'
|
git log origin/master -n 15 --pretty=oneline | sed -r '/^.{40} Merge branch/d' | sed -r 's/^.{40}/Latests: /'
|
||||||
echo "END_OF_GIT_LAST_COMMITS"
|
echo "END_OF_GIT_LAST_COMMITS"
|
||||||
|
|
||||||
# run rubocop
|
|
||||||
echo "RUBOCOP_RESULTS"
|
|
||||||
rubocop
|
|
||||||
echo "END_OF_RUBOCOP_RESULTS"
|
|
||||||
|
|
||||||
# run tests
|
# run tests
|
||||||
echo "TEST_RESULTS"
|
echo "TEST_RESULTS"
|
||||||
RAILS_ENV=test ROBOT=true bundle exec rake test
|
RAILS_ENV=test ROBOT=true bundle exec rake test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue