• Toon Claes's avatar
    test: Inject bundler config in environment · e94f41c9
    Toon Claes authored
    Setting up and spawning Gitaly in tests needs to have some Bundler
    settings configured. Until now this was done by writing to the local
    config file in the ruby directory inside the gitaly dir used in test.
    
    This method didn't seem to be robust for all our user and
    use-cases (i.e. CI), because this configuration _could_ be done from
    different places.
    
    To make the situation more predictable, this change injects all Bundler
    configuration through environment variables instead. It sets
    BUNDLE_IGNORE_CONFIG to make sure any existing configuration written to
    file is ignored, this includes the .bundle/config inside the project and
    possibly in the user's $HOME directory.
    e94f41c9
gitaly-test-spawn 768 Bytes