From af91c44ad35416260eb32167af668c298d246a3b Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 4 May 2017 14:29:28 +0300 Subject: [PATCH] Remove robot bin as unused --- bin/robot | 69 ------------------------------ config/database-robot.yml | 31 -------------- spec/models/bank_statement_spec.rb | 1 - 3 files changed, 101 deletions(-) delete mode 100755 bin/robot delete mode 100644 config/database-robot.yml diff --git a/bin/robot b/bin/robot deleted file mode 100755 index a9255c78d..000000000 --- a/bin/robot +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash -# -# Build and run for automatic tests -# - -# fail later -set -o pipefail - -# default locations -export LANGUAGE=en_US.UTF-8 -export LANG=en_US.UTF-8 -export LC_ALL=en_US.UTF-8 -export RAILS_ENV=test - -# cd to Rails root directory -cd "$(dirname "$0")"; cd .. - -cp config/application-example.yml config/application.yml -cp config/secrets-example.yml config/secrets.yml -cp config/database-robot.yml config/database.yml - -# Under jenkins admin interface use rbenv-plugin wrapper -# rbenv does not have bundler by default -if echo gem list --local bundler | grep -q "bundler" - then echo 'bundler ok: already installed' - else - echo 'Installing bundler...' - gem install bundler -fi -bundle install - -RAILS_ENV=test bundle exec rake db:all:drop -RAILS_ENV=test bundle exec rake db:all:setup - -echo "GIT_LAST_COMMITS" -git log --pretty='%s (%cn, %cr)' --abbrev-commit --graph --decorate -n 20 --no-color -echo "END_OF_GIT_LAST_COMMITS" - -echo "RUBOCOP_RESULTS" -bundle exec rubocop -D -RCODE=$? -echo "END_OF_RUBOCOP_RESULTS" - -echo "TEST_RESULTS" -# basic tests without EPP -# ROBOT=true bundle exec rake - -# all tests with EPP -ROBOT=true bundle exec rake test -TCODE=$? -echo "END_OF_TEST_RESULTS" - -echo "SECURITY_RESULTS" -bundle exec bundle-audit update -bundle exec bundle-audit -BCODE=$? -BCODE=0 # tmp -bundle exec brakeman -q -echo "END_OF_SECURITY_RESULTS" - -# update code review -bundle exec rubycritic app lib - -if [ $RCODE == 0 ] && [ $TCODE == 0 ] &&[ $BCODE == 0 ]; then - exit 0 -else - echo "ROBOTEXITWITHFAILURE" - exit 1 -fi diff --git a/config/database-robot.yml b/config/database-robot.yml deleted file mode 100644 index 1a7809ccb..000000000 --- a/config/database-robot.yml +++ /dev/null @@ -1,31 +0,0 @@ -default: &default - host: localhost - adapter: postgresql - encoding: unicode - pool: 5 - username: test - password: test - -test: - <<: *default - database: registry_test - -whois_test: - <<: *default - database: registry_whois_test - -api_log_test: - <<: *default - database: registry_api_log_test - -production: - <<: *default - database: registry_test - -whois_test: - <<: *default - database: registry_whois_test - -api_log_test: - <<: *default - database: registry_api_log_test diff --git a/spec/models/bank_statement_spec.rb b/spec/models/bank_statement_spec.rb index 2fa9ed19e..d115f6f04 100644 --- a/spec/models/bank_statement_spec.rb +++ b/spec/models/bank_statement_spec.rb @@ -37,7 +37,6 @@ describe BankStatement do end it 'should bind transactions with invoices' do - # pending 'Robot fails, probably we need to reset data here or some other issue' # sometimes it works, sometimes not # r = Fabricate(:registrar_with_no_account_activities, reference_no: 'RF7086666663') # invoice = r.issue_prepayment_invoice(200, 'add some money')