-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
49 lines (40 loc) · 890 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
37
38
39
40
41
42
43
44
45
46
47
48
49
all: test
test_fmt:
@echo Checking correct formatting of files
@{ \
files=$$( go fmt ./... ); \
if [ -n "$$files" ]; then \
echo "Files not properly formatted: $$files"; \
exit 1; \
fi; \
if ! go vet ./...; then \
exit 1; \
fi \
}
test_lint:
@echo Checking linting of files
@{ \
GO111MODULE=off go get -u golang.org/x/lint/golint; \
lintfiles=$$( golint ./... ); \
if [ -n "$$lintfiles" ]; then \
echo "Lint errors:"; \
echo "$$lintfiles"; \
exit 1; \
fi \
}
test_verbose:
go test -v -race -short ./...
# use test_verbose instead if you want to use this Makefile locally
test_go:
go test -race -short ./...
test: test_fmt test_lint test_go
proto:
./proto.sh
make -C external
docker:
cd conode/; make docker_dev
cd external/docker; make docker_test
test_java: docker
cd external/java; mvn test
test_js: docker
cd external/js; npm run test