提交 096cb88c 编写于 作者: Y yuuji.yaginuma

Return a non zero code when can not connect to backend on CI

上级 b0f30702
......@@ -8,7 +8,8 @@ def setup
end
unless can_run?
puts "Cannot run integration tests for backburner. To be able to run integration tests for backburner you need to install and start beanstalkd.\n"
exit
status = ENV["CI"] ? false : true
exit status
end
end
......
......@@ -32,7 +32,8 @@ def start_workers
rescue Sequel::DatabaseConnectionError
puts "Cannot run integration tests for que. To be able to run integration tests for que you need to install and start postgresql.\n"
exit
status = ENV["CI"] ? false : true
exit status
end
def stop_workers
......
......@@ -30,7 +30,8 @@ def start_workers
rescue PG::ConnectionBad
puts "Cannot run integration tests for queue_classic. To be able to run integration tests for queue_classic you need to install and start postgresql.\n"
exit
status = ENV["CI"] ? false : true
exit status
end
def stop_workers
......
......@@ -29,7 +29,8 @@ def setup
log: Rails.root.join("log/sneakers.log").to_s
unless can_run?
puts "Cannot run integration tests for sneakers. To be able to run integration tests for sneakers you need to install and start rabbitmq.\n"
exit
status = ENV["CI"] ? false : true
exit status
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册