-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 776 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 776 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
.PHONY: all build test vet web web-a11y coverage coverage-report web-coverage specs-list
all: web build test vet
# Print sorted basenames of specs/done (canonical completed-spec inventory).
specs-list:
@ls -1 specs/done | sort
web:
cd web && corepack yarn install && corepack yarn run build
web-a11y: web
cd web && corepack yarn run a11y:ci
BUILD_TAGS ?= libvirt
build:
go build -tags $(BUILD_TAGS) -o bin/ ./cmd/...
test:
go test -tags $(BUILD_TAGS) ./...
vet:
go vet -tags $(BUILD_TAGS) ./...
coverage:
go test -tags $(BUILD_TAGS) -coverprofile=coverage.out ./...
coverage-report: coverage
go tool cover -html=coverage.out -o coverage.html
go tool cover -func=coverage.out
web-coverage:
cd web && corepack yarn install && corepack yarn run test:coverage