Adds "make build" target, and running lint,build,test (#1331)

This commit is contained in:
Alex Collins 2019-03-28 11:20:51 -07:00 committed by GitHub
parent b40ba175a3
commit b28d8361f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,8 +129,12 @@ dep-ensure:
lint:
golangci-lint run --fix
.PHONY: build
build: lint
go build `go list ./... | grep -v resource_customizations`
.PHONY: test
test:
test: build
go test -covermode=count -coverprofile=coverage.out `go list ./... | grep -v "github.com/argoproj/argo-cd/test/e2e"`
.PHONY: test-e2e
@ -147,7 +151,7 @@ clean: clean-debug
-rm -rf ${CURRENT_DIR}/dist
.PHONY: pre-commit
pre-commit: dep-ensure codegen test lint
pre-commit: dep-ensure codegen test
.PHONY: release-precheck
release-precheck: manifests