2020-02-12 22:07:57 +01:00
|
|
|
build: embed
|
|
|
|
CGO_ENABLED=0 go build -o ./bin/scaffold ./cmd/scaffold
|
|
|
|
|
|
|
|
embed:
|
|
|
|
find ./ -name rice-box.go | xargs rm -f
|
|
|
|
rice embed-go -i ./cmd/scaffold/command
|
|
|
|
|
2018-12-06 15:18:05 +01:00
|
|
|
test:
|
|
|
|
go clean -testcache
|
2020-02-12 22:07:57 +01:00
|
|
|
go test -v -race ./...
|
|
|
|
|
|
|
|
watch:
|
|
|
|
modd
|
2018-12-06 15:18:05 +01:00
|
|
|
|
|
|
|
deps:
|
|
|
|
go get -u golang.org/x/tools/cmd/godoc
|
|
|
|
go get -u github.com/cortesi/modd/cmd/modd
|
|
|
|
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
|
|
|
|
|
|
|
|
coverage:
|
|
|
|
@script/coverage
|
|
|
|
|
|
|
|
lint:
|
|
|
|
golangci-lint run --tests=false --enable-all
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf ./bin ./release ./coverage
|
|
|
|
|
|
|
|
doc:
|
2019-07-28 13:11:23 +02:00
|
|
|
@echo "open your browser to http://localhost:6060/pkg/gitlab.com/wpetit/goweb to see the documentation"
|
2018-12-06 15:18:05 +01:00
|
|
|
godoc -http=:6060
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: test clean lint coverage doc
|