2017-09-10 17:25:29 +05:30
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
# This script is used both in CI and in local development 'rspec' runs.
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
require_relative 'gitaly_test'
|
|
|
|
|
|
|
|
class GitalyTestSpawn
|
|
|
|
include GitalyTest
|
|
|
|
|
|
|
|
def run
|
2021-03-08 18:12:59 +05:30
|
|
|
install_gitaly_gems if ENV['CI']
|
2018-10-15 14:42:47 +05:30
|
|
|
check_gitaly_config!
|
|
|
|
|
|
|
|
# # Uncomment line below to see all gitaly logs merged into CI trace
|
|
|
|
# spawn('sleep 1; tail -f log/gitaly-test.log')
|
|
|
|
|
|
|
|
# In local development this pid file is used by rspec.
|
2020-04-22 19:07:51 +05:30
|
|
|
IO.write(File.expand_path('../tmp/tests/gitaly.pid', __dir__), start_gitaly)
|
2021-02-22 17:27:13 +05:30
|
|
|
IO.write(File.expand_path('../tmp/tests/gitaly2.pid', __dir__), start_gitaly2)
|
2020-04-22 19:07:51 +05:30
|
|
|
IO.write(File.expand_path('../tmp/tests/praefect.pid', __dir__), start_praefect)
|
2018-10-15 14:42:47 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
GitalyTestSpawn.new.run
|