-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 668 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 668 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
37
38
39
PKGS = $$(go list ./... | grep -v /vendor/)
default:
go build
test:
go clean $(PKGS)
go test $(PKGS) -check.v -coverprofile=coverage.txt -covermode=atomic
race:
go clean $(PKGS)
go test -race $(PKGS) -check.v -coverprofile=coverage.txt -covermode=atomic
profile:
go clean $(PKGS)
make
clean:
rm -rf *.prof
go clean $(PKGS)
rm -rf frontend/node_modules
rm -rf frontend/build
lint:
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run
frontend/test:
cd frontend && \
npm install && \
echo npm run test
frontend/build:
cd frontend && \
npm install && \
npm run build
docker:
docker build -t gfleury/squaas:latest .