mirror of
https://github.com/discourse/discourse.git
synced 2025-04-15 04:00:54 +08:00
BUGFIX: don't require env if its not needed
This commit is contained in:
parent
bacd2c0469
commit
51709a0a27
@ -1,11 +1,15 @@
|
||||
desc "run phantomjs based smoke tests on current build"
|
||||
task "smoke:test" => :environment do
|
||||
task "smoke:test" do
|
||||
|
||||
phantom_path = File.expand_path('~/phantomjs/bin/phantomjs')
|
||||
phantom_path = nil unless File.exists?(phantom_path)
|
||||
phantom_path = phantom_path || 'phantomjs'
|
||||
|
||||
url = ENV["URL"] || Discourse.base_url
|
||||
url = ENV["URL"]
|
||||
if !url
|
||||
require "#{Rails.root}/config/environment"
|
||||
url = Discourse.base_url
|
||||
end
|
||||
|
||||
puts "Testing: #{url}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user