diff --git a/Makefile b/Makefile index 0bc72f24..be00aa75 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,11 @@ +install: + go install -ldflags "-X \"main.version=$$(git rev-parse --short=10 HEAD)\"" github.com/zaquestion/lab + +dep: + go get -u -d github.com/zaquestion/lab + cd $GOPATH/src/github.com/zaquestion/lab + dep ensure + test: bash -c "trap 'trap - SIGINT SIGTERM ERR; mv testdata/.git testdata/test.git; rm coverage-* 2>&1 > /dev/null; exit 1' SIGINT SIGTERM ERR; $(MAKE) internal-test" diff --git a/README.md b/README.md index 9f9d6e6f..09135582 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ Required * [Go 1.9+](https://golang.org/doc/install) * [GOPATH](https://golang.org/doc/code.html#GOPATH) * [dep](https://github.com/golang/dep) + ``` go get -u -d github.com/zaquestion/lab cd $GOPATH/src/github.com/zaquestion/lab @@ -56,6 +57,13 @@ dep ensure go install -ldflags "-X \"main.version=$(git rev-parse --short=10 HEAD)\"" github.com/zaquestion/lab ``` +or + +``` +make dep +make install +``` + # Configuration The first time you run lab it will prompt for your GitLab information. lab uses HCL for its config and looks in `~/.config/lab.hcl` and `./lab.hcl`