From ae44f04cb40e9d7ee72a9498cada05b2ee947ebb Mon Sep 17 00:00:00 2001 From: Priit Tamboom Date: Mon, 6 Oct 2014 16:57:45 +0300 Subject: [PATCH] Robot: move rubocop to top to find syntax errors early --- bin/robot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/robot b/bin/robot index 2fa91c03c..9ae9229c6 100755 --- a/bin/robot +++ b/bin/robot @@ -11,6 +11,11 @@ git pull origin master git reset --hard unset GIT_DIR GIT_WORK_TREE +# run rubocop +echo "RUBOCOP_RESULTS" +rubocop +echo "END_OF_RUBOCOP_RESULTS" + bundle install --deployment # 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: /' echo "END_OF_GIT_LAST_COMMITS" -# run rubocop -echo "RUBOCOP_RESULTS" -rubocop -echo "END_OF_RUBOCOP_RESULTS" - # run tests echo "TEST_RESULTS" RAILS_ENV=test ROBOT=true bundle exec rake test