-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Contributing | ||
|
||
## Setup your machine | ||
|
||
`couchbase-exporter` is written in [Go](https://golang.org/), version 1.11 and beyond. | ||
|
||
Prerequisites: | ||
|
||
- `make` | ||
- [Go 1.11+](https://golang.org/doc/install) | ||
- `jsonnet` (to generate grafana dashboards) | ||
|
||
Clone the project anywhere: | ||
|
||
```sh | ||
$ git clone [email protected]:totvslabs/couchbase-exporter.git | ||
``` | ||
|
||
Install the build and lint dependencies: | ||
|
||
```console | ||
$ make setup | ||
``` | ||
|
||
A good way of making sure everything is all right is running the test suite: | ||
|
||
```console | ||
$ make test | ||
``` | ||
|
||
## Test your change | ||
|
||
You can create a branch for your changes and try to build from the source as you go: | ||
|
||
```console | ||
$ make build | ||
``` | ||
|
||
When you are satisfied with the changes, we suggest you run: | ||
|
||
```console | ||
$ make ci | ||
``` | ||
|
||
Which runs all the linters and tests. |