mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
19 lines
290 B
Makefile
19 lines
290 B
Makefile
|
BUILDTAGS := selinux
|
||
|
|
||
|
check-gopath:
|
||
|
ifndef GOPATH
|
||
|
$(error GOPATH is not set)
|
||
|
endif
|
||
|
|
||
|
.PHONY: test
|
||
|
test: check-gopath
|
||
|
go test -timeout 3m -tags "${BUILDTAGS}" ${TESTFLAGS} -v ./...
|
||
|
|
||
|
.PHONY:
|
||
|
lint:
|
||
|
@out="$$(golint go-selinux)"; \
|
||
|
if [ -n "$$out" ]; then \
|
||
|
echo "$$out"; \
|
||
|
exit 1; \
|
||
|
fi
|