-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 819 Bytes
/
Makefile
File metadata and controls
36 lines (26 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile to build the project
GO=go
LINT=golangci-lint
LINTOPTS=
TEST_TAGS=
COVERAGE=-coverprofile=coverage.txt -covermode=atomic
all: tidy test lint
travis-ci: tidy test-cov lint
test:
${GO} test ./... ${TEST_TAGS}
test-cov:
${GO} test ./... ${TEST_TAGS} ${COVERAGE}
test-int-cov:
${GO} test ./... -tags=integration ${COVERAGE}
test-examples-block:
go test ./sdsaasv1/... -tags=examples -ginkgo.label-filter="!object" -v
test-examples-object:
go test ./sdsaasv1/... -tags=examples -ginkgo.label-filter="!block" -v
test-integration-block:
go test ./sdsaasv1/... -tags=integration -ginkgo.label-filter="!object" -v
test-integration-object:
go test ./sdsaasv1/... -tags=integration -ginkgo.label-filter="!block" -v
lint:
${LINT} run --build-tags=integration,examples ${LINTOPTS}
tidy:
${GO} mod tidy