gitlab-org--gitlab-foss/scripts
Lin Jen-Shin 873bc3a685 Preserve gem path so that we use the same gems
Without this patch, I would end up with:

```
An error occurred in a `before(:suite)` hook.
Failure/Error: raise "could not connect to gitaly at #{socket.inspect} after #{sleep_time} seconds"

RuntimeError:
  could not connect to gitaly at "tmp/tests/gitaly/gitaly.socket" after 10 seconds
```

Digging into it, it's because `scripts/gitaly-test-spawn` could not
spawn the process, because it cannot find the installed gems.

I personally installed all my gems under $HOME, namely with:

* `gem install rake --user-install` or:
* `bundle install --path ~/.gem`

The gems would be installed to `~/.gem/ruby/2.4.0/gems`, where
the version is Ruby ABI version.

Now we're changing $HOME, making RubyGems think that the gems
would be installed to `tmp/tests/ruby/2.4.0/gems` which is
apparently not the case.

In order to workaround this, we could preserve $GEM_PATH
populated by RubyGems, ignoring the default path based on $HOME.
2017-12-19 17:41:59 +08:00
..
create_mysql_user.sh Use a non-superuser user to access GitLab to ensure permissions are proper 2017-11-09 22:14:03 -08:00
create_postgres_user.sh Use a non-superuser user to access GitLab to ensure permissions are proper 2017-11-09 22:14:03 -08:00
detect-new-flaky-examples Retrieve and sync flaky specs report from and to S3 2017-08-11 14:55:10 +02:00
gitaly-test-build Remove test gitaly when older than version file 2017-08-03 10:15:08 +00:00
gitaly-test-spawn Preserve gem path so that we use the same gems 2017-12-19 17:41:59 +08:00
lint-changelog-yaml Extend changelog checker to test file extensions 2017-09-29 15:24:16 +01:00
lint-conflicts.sh Make sure we didn't commit conflicts 2017-08-01 12:06:56 +00:00
lint-doc.sh Check for exec permissions also in app/ 2017-09-25 10:59:25 +02:00
merge-reports Retrieve and sync flaky specs report from and to S3 2017-08-11 14:55:10 +02:00
merge-simplecov Introduce SimpleCovEnv singleton helper and use it 2016-07-21 12:46:49 +02:00
prepare_build.sh Make sure we're using git installed in gitlab-build-images 2017-11-23 18:26:41 +08:00
schema_changed.sh Add rake task to check db schema is valid 2017-09-19 16:42:44 +03:00
static-analysis Use the --parallel Rubocop flag in the static-analysis and improve the job 2017-11-03 17:00:49 +01:00
sync-reports Save Knapsack reports in S3 instead of in shared cache 2017-03-24 18:18:37 +01:00
trigger-build-docs Use slug as the prefix for the docs CI job preview URL 2017-11-17 14:07:06 +01:00
trigger-build-omnibus Make rubocop happy 2017-12-15 11:29:52 +05:30
utils.sh Test both PostgreSQL and MySQL for the win. 2017-03-24 04:47:00 +08:00