2017-07-31 09:17:14 -04:00
|
|
|
#!/usr/bin/env ruby
|
2021-02-12 07:09:02 -05:00
|
|
|
# frozen_string_literal: true
|
2017-07-31 09:17:14 -04:00
|
|
|
|
2018-05-14 04:10:29 -04:00
|
|
|
# This script is used both in CI and in local development 'rspec' runs.
|
2017-07-31 09:17:14 -04:00
|
|
|
|
2021-04-21 05:09:15 -04:00
|
|
|
require_relative '../spec/support/helpers/gitaly_setup'
|
2018-05-14 04:10:29 -04:00
|
|
|
|
|
|
|
class GitalyTestSpawn
|
2021-04-21 05:09:15 -04:00
|
|
|
include GitalySetup
|
2018-05-14 04:10:29 -04:00
|
|
|
|
|
|
|
def run
|
2022-01-18 13:11:20 -05:00
|
|
|
install_gitaly_gems
|
2022-01-11 01:10:58 -05:00
|
|
|
|
2022-05-11 20:09:17 -04:00
|
|
|
# Run Praefect migrations
|
|
|
|
setup_praefect
|
|
|
|
|
2022-01-18 13:11:20 -05:00
|
|
|
# Optionally specify the path to the gitaly config toml as first argument.
|
|
|
|
# Used by workhorse in test.
|
|
|
|
spawn_gitaly(ARGV[0])
|
2018-05-14 04:10:29 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
GitalyTestSpawn.new.run
|