2020-01-09 07:03:32 -09:00
|
|
|
.PHONY: build
|
2020-01-06 09:47:48 -09:00
|
|
|
build:
|
2020-01-06 11:19:14 -09:00
|
|
|
go build
|
2016-10-10 16:27:09 -08:00
|
|
|
|
|
|
|
|
.PHONY: setup
|
2020-01-08 07:13:05 -09:00
|
|
|
setup: jamstash
|
2020-01-04 17:13:54 -09:00
|
|
|
@which reflex || (echo "Installing Reflex" && GO111MODULE=off go get -u github.com/cespare/reflex)
|
|
|
|
|
@which goconvey || (echo "Installing GoConvey" && GO111MODULE=off go get -u github.com/smartystreets/goconvey)
|
2020-01-07 10:56:26 -09:00
|
|
|
@which wire || (echo "Installing Wire" && GO111MODULE=off go get -u go get github.com/google/wire/cmd/wire)
|
2020-01-04 17:13:54 -09:00
|
|
|
go mod download
|
2016-10-10 16:27:09 -08:00
|
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
|
run:
|
2020-01-09 09:51:54 -09:00
|
|
|
@reflex -s -d none -r "(\.go$$|sonic.toml)" -R "Jamstash-master" -- go run .
|
2016-10-10 16:27:09 -08:00
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
|
test:
|
2020-01-09 07:03:32 -09:00
|
|
|
go test ./... -v
|
2016-10-10 16:27:09 -08:00
|
|
|
|
|
|
|
|
.PHONY: convey
|
|
|
|
|
convey:
|
2020-01-09 07:03:32 -09:00
|
|
|
NOLOG=1 goconvey --port 9090 -excludedDirs static,devDb,wiki,bin,tests,Jamstash-master
|
2016-10-10 16:27:09 -08:00
|
|
|
|
|
|
|
|
.PHONY: cloc
|
|
|
|
|
cloc:
|
|
|
|
|
# cloc can be installed using brew
|
2020-01-09 07:03:32 -09:00
|
|
|
cloc --exclude-dir=devDb,.idea,.vscode,wiki,static,Jamstash-master --exclude-ext=iml,xml .
|
2020-01-08 07:13:05 -09:00
|
|
|
|
2020-01-09 07:03:32 -09:00
|
|
|
.PHONY: jamstash
|
2020-01-08 07:13:05 -09:00
|
|
|
jamstash:
|
|
|
|
|
wget -N https://github.com/tsquillario/Jamstash/archive/master.zip
|
|
|
|
|
unzip -o master.zip
|
|
|
|
|
rm master.zip
|