gitlab-org--gitlab-foss/scripts/gitaly-test-spawn
Jacob Vosmaer (out of office May 10-14) d291f69fd9 Fix gitaly-ruby bundle poisoning in CI
2018-05-14 08:10:29 +00:00

23 lines
522 B
Ruby
Executable file

#!/usr/bin/env ruby
# This script is used both in CI and in local development 'rspec' runs.
require_relative 'gitaly_test'
class GitalyTestSpawn
include GitalyTest
def run
check_gitaly_config!
# # Uncomment line below to see all gitaly logs merged into CI trace
# spawn('sleep 1; tail -f log/gitaly-test.log')
pid = start_gitaly
# In local development this pid file is used by rspec.
IO.write(File.expand_path('../tmp/tests/gitaly.pid', __dir__), pid)
end
end
GitalyTestSpawn.new.run