Skip to content

Commit

Permalink
Merge pull request ManageIQ#14773 from NickLaMuro/bin-setup-in-produc…
Browse files Browse the repository at this point in the history
…tion

Skip test setup in prod env
  • Loading branch information
bdunne authored Apr 18, 2017
2 parents 373c178 + 3d54c9f commit 850ffae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
require_relative '../lib/manageiq/environment'
require 'optparse'

options = {:do_tests => true, :do_db => true}
options = {
# Don't run tests by default if we are in a prod env since no task exists.
:do_tests => ENV['RAILS_ENV'] != "production",
:do_db => true
}

OptionParser.new do |opts|
opts.banner = "Usage: setup [options]"
opts.on("-d", "--no-db", "Do not prepare db") do
Expand Down
3 changes: 3 additions & 0 deletions bin/update
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env ruby
require_relative '../lib/manageiq/environment'

# Don't run tests by default if we are in a prod env since no task exists.
ENV["SKIP_TEST_RESET"] = '1' if ENV['RAILS_ENV'] == 'production'

Dir.chdir ManageIQ::Environment::APP_ROOT do
# This script is a way to update your development environment automatically.
# Add necessary update steps to this file.
Expand Down

0 comments on commit 850ffae

Please sign in to comment.