2016-10-24 20:32:22 +03:00
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2017-01-10 23:29:27 +03:00
|
|
|
.PHONY: build test validate-generated lint ci devenv
|
|
|
|
|
2017-02-22 00:40:31 +03:00
|
|
|
prereqs:
|
2017-02-09 22:18:57 +03:00
|
|
|
go get github.com/jteeuwen/go-bindata/...
|
2017-02-22 00:40:31 +03:00
|
|
|
|
|
|
|
build: prereqs
|
2016-10-27 01:41:17 +03:00
|
|
|
go generate -v ./...
|
2017-01-11 03:31:04 +03:00
|
|
|
go get .
|
2016-10-24 20:32:22 +03:00
|
|
|
go build -v
|
|
|
|
|
2017-02-22 00:40:31 +03:00
|
|
|
test: prereqs
|
2016-10-24 20:32:22 +03:00
|
|
|
go test -v ./...
|
|
|
|
|
2017-02-22 00:40:31 +03:00
|
|
|
validate-generated: prereqs
|
2016-10-24 20:32:22 +03:00
|
|
|
./scripts/validate-generated.sh
|
|
|
|
|
2017-02-22 00:40:31 +03:00
|
|
|
lint: prereqs
|
2017-02-22 00:17:04 +03:00
|
|
|
go get -u github.com/golang/lint/golint
|
2016-10-24 20:32:22 +03:00
|
|
|
# TODO: fix lint errors, enable linting
|
|
|
|
# golint -set_exit_status
|
|
|
|
|
|
|
|
ci: validate-generated build test lint
|
|
|
|
|
2016-10-27 01:41:17 +03:00
|
|
|
devenv:
|
|
|
|
./scripts/devenv.sh
|