-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (33 loc) · 1.06 KB
/
Copy pathMakefile
File metadata and controls
47 lines (33 loc) · 1.06 KB
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
VERSION ?= dev
LDFLAGS := -X github.com/revazi/tasklight/internal/cli.Version=$(VERSION)
FUZZTIME ?= 5s
.PHONY: check check-format test test-race fuzz-smoke vet build run cross-compile macos-helper npm-package package-smoke clean
check:
./scripts/check.sh
check-format:
./scripts/check-format.sh
test:
go test ./...
test-race:
go test -race ./...
fuzz-smoke:
go test -run='^$$' -fuzz='^FuzzShellJoin$$' -fuzztime=$(FUZZTIME) ./internal/session
go test -run='^$$' -fuzz='^FuzzParseRunArgs$$' -fuzztime=$(FUZZTIME) ./internal/cli
vet:
go vet ./...
build:
go build -ldflags "$(LDFLAGS)" -o bin/tasklight ./cmd/tasklight
run:
go run -ldflags "$(LDFLAGS)" ./cmd/tasklight --help
cross-compile:
./scripts/cross-compile.sh
macos-helper:
./scripts/build-macos-helper.sh bin darwin-arm64
npm-package:
npm --prefix npm/tasklight-cli run build:vendor
npm --prefix npm/tasklight-cli run test:local
npm --prefix npm/tasklight-cli run pack:check
package-smoke:
./scripts/package-smoke.sh
clean:
rm -rf bin coverage.out npm/tasklight-cli/vendor npm/tasklight-cli/*.tgz