summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2021-05-19 18:14:05 +0100
committerSean McGivern <sean@gitlab.com>2021-05-20 16:19:17 +0000
commit2600bf7ac3b70e7df0e164087241bfda0b73ea8f (patch)
treea340747a59851134feff42a5a2ff9276f7a02306 /README.md
parentb13bc6e5141ce5a45469c8ab0aa888badcedd9b5 (diff)
downloadgitlab-shell-2600bf7ac3b70e7df0e164087241bfda0b73ea8f.tar.gz
Set up a test Gitaly server in CI and provide a docker-compose file
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0fe39e3..3231646 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,20 @@ Run both test and verify (the default Makefile target):
bundle install
make validate
+### Gitaly
+
+Some tests need a Gitaly server. The
+[`docker-compose.yml`](./docker-compose.yml) file will run Gitaly on
+port 8075. To tell the tests where Gitaly is, set
+`GITALY_CONNECTION_INFO`:
+
+ export GITALY_CONNECTION_INFO='{"address": "tcp://localhost:8075", "storage": "default"}'
+ make test
+
+If no `GITALY_CONNECTION_INFO` is set, the test suite will still run, but any
+tests requiring Gitaly will be skipped. They will always run in the CI
+environment.
+
## Git LFS remark
Starting with GitLab 8.12, GitLab supports Git LFS authentication through SSH.