You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GOFMT = gofmtresult=$$(gofmt -e -l -s ${GO_FILES} ${GO_PACKAGES}); if [[ -n $$gofmtresult ]]; then echo "gofmt errors found in the following files: $${gofmtresult}"; false; fi;
16
-
GOTEST = go test --cover --race -v
17
-
18
10
# UID and GID of local user
19
11
UID := $(shell id -u)
20
12
GID := $(shell id -g)
21
13
14
+
GOTEST = go test --cover --race
22
15
23
16
bootstrap:
24
17
${DEV_ENV_CMD} glide install
25
18
26
19
glideup:
27
20
${DEV_ENV_CMD} glide up
28
21
29
-
setup-gotools:
30
-
go get -u github.com/golang/lint/golint
31
-
go get -u golang.org/x/tools/cmd/cover
32
-
go get -u golang.org/x/tools/cmd/vet
33
-
34
22
test: test-style test-unit
35
23
36
24
test-style:
37
-
${DEV_ENV_CMD} bash -c '${GOFMT}'
38
-
${DEV_ENV_CMD} sh -c 'go vet $(repo_path) $(GO_PACKAGES_REPO_PATH)'
39
-
@for i in$(addsuffix /...,$(GO_PACKAGES));do\
40
-
${DEV_ENV_CMD} golint $$i;\
41
-
done
25
+
${DEV_ENV_CMD} lint
42
26
43
27
test-unit:
44
28
${DEV_ENV_PREFIX_CGO_ENABLED}${DEV_ENV_IMAGE} sh -c '${GOTEST} $$(glide nv)'
0 commit comments