gitlab-org--gitlab-foss/scripts/gitaly-test-spawn

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
484 B
Plaintext
Raw Normal View History

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