You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/beginners_guide.md
+51-39
Original file line number
Diff line number
Diff line change
@@ -4,79 +4,91 @@ group: Source Code
4
4
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
5
5
---
6
6
7
-
##Beginner's guide to Gitlab Shell contributions
7
+
# Beginner's guide to GitLab Shell contributions
8
8
9
-
###Check
9
+
## Check
10
10
11
-
Checks if GitLab API access and redis via internal API can be reached:
11
+
Checks if GitLab API access and Redis via internal API can be reached:
12
12
13
-
make check
13
+
```shell
14
+
make check
15
+
```
14
16
15
-
###Compile
17
+
## Compile
16
18
17
19
Builds the `gitlab-shell` binaries, placing them into `bin/`.
18
20
19
-
make compile
21
+
```shell
22
+
make compile
23
+
```
20
24
21
-
###Install
25
+
## Install
22
26
23
-
Builds the `gitlab-shell` binaries and installs them onto the filesystem. The
24
-
default location is `/usr/local`, but can be controlled by use of the `PREFIX`
27
+
Builds the `gitlab-shell` binaries and installs them onto the file system. The
28
+
default location is `/usr/local`, but you can change the location by setting the `PREFIX`
25
29
and `DESTDIR` environment variables.
26
30
27
-
make install
31
+
```shell
32
+
make install
33
+
```
28
34
29
-
###Setup
35
+
## Setup
30
36
31
37
This command is intended for use when installing GitLab from source on a single
32
-
machine. In addition to compiling the gitlab-shell binaries, it ensures that
33
-
various paths on the filesystem exist with the correct permissions. Do not run
34
-
it unless instructed to by your installation method documentation.
38
+
machine. It compiles the GitLab Shell binaries, and ensures that
39
+
various paths on the file system exist with the correct permissions. Do not run
40
+
this command unless your installation method documentation instructs you to.
35
41
36
-
make setup
42
+
```shell
43
+
make setup
44
+
```
37
45
38
-
39
-
### Testing
46
+
## Testing
40
47
41
48
Run tests:
42
49
43
-
bundle install
44
-
make test
50
+
```shell
51
+
bundle install
52
+
make test
53
+
```
45
54
46
-
Run gofmt:
55
+
Run Gofmt:
47
56
48
-
make verify
57
+
```shell
58
+
make verify
59
+
```
49
60
50
61
Run both test and verify (the default Makefile target):
51
62
52
-
bundle install
53
-
make validate
63
+
```shell
64
+
bundle install
65
+
make validate
66
+
```
54
67
55
-
###Gitaly
68
+
## Gitaly
56
69
57
70
Some tests need a Gitaly server. The
58
-
[`docker-compose.yml`](./docker-compose.yml) file will run Gitaly on
59
-
port 8075. To tell the tests where Gitaly is, set
60
-
`GITALY_CONNECTION_INFO`:
71
+
[`docker-compose.yml`](../docker-compose.yml) file runs Gitaly on port 8075.
72
+
To tell the tests where Gitaly is, set `GITALY_CONNECTION_INFO`:
0 commit comments