-
Notifications
You must be signed in to change notification settings - Fork 265
/
Makefile
36 lines (25 loc) · 871 Bytes
/
Makefile
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
# go test -count=1 disables the test cache so that all tests are run every time.
all: test integration selfintegration examples
test:
go test -count=1 -race ./...
lint:
staticcheck ./...
integration:
go test -count=1 -race -v -tags=integration ./tests/python...
selfintegration:
go test -count=1 -race -v -tags=integration ./tests/go...
examples:
go build -o build/ ./examples/...
test-race:
go test -count=1 -race ./...
go test -count=1 -race -v -tags=integration ./tests/python...
go test -count=1 -race -v -tags=integration ./tests/go...
install-py-opcua:
pip3 install opcua
gen:
which stringer || go install golang.org/x/tools/cmd/stringer@latest
find . -name '*_gen.go' -delete
go generate ./...
release:
GITHUB_TOKEN=$$(security find-generic-password -gs GITHUB_TOKEN -w) goreleaser --clean
.PHONY: all examples gen integration test release