2016-10-24 20:32:22 +03:00
|
|
|
.NOTPARALLEL:
|
|
|
|
|
2017-03-09 01:36:40 +03:00
|
|
|
.PHONY: build test validate-generated fmt lint ci devenv
|
2017-01-10 23:29:27 +03:00
|
|
|
|
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-03-08 00:06:32 +03:00
|
|
|
cd test/acs-engine-test; go build -v
|
2016-10-24 20:32:22 +03:00
|
|
|
|
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-03-09 01:36:40 +03:00
|
|
|
fmt: prereqs
|
|
|
|
test -z "$$(gofmt -s -l . | tee /dev/stderr)"
|
|
|
|
|
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
|
|
|
|
|
2017-03-09 01:36:40 +03:00
|
|
|
ci: validate-generated build fmt test lint
|
2016-10-24 20:32:22 +03:00
|
|
|
|
2016-10-27 01:41:17 +03:00
|
|
|
devenv:
|
|
|
|
./scripts/devenv.sh
|