-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (29 loc) · 1.08 KB
/
Makefile
File metadata and controls
42 lines (29 loc) · 1.08 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
PKG = github.com/k1LoW/deck
COMMIT = $(shell git rev-parse --short HEAD)
BUILD_LDFLAGS = "-s -w -X $(PKG)/version.Revision=$(COMMIT)"
default: test
ci: depsdev test
test:
go test ./... -coverprofile=coverage.out -covermode=count -count=1
fulltest:
env TEST_INTEGRATION=1 go test -v ./... -coverprofile=coverage.out -covermode=count -count=1
build:
go build -ldflags=$(BUILD_LDFLAGS) -trimpath -o deck cmd/deck/main.go
install:
go install -ldflags=$(BUILD_LDFLAGS) -trimpath ./cmd/deck
lint:
golangci-lint run ./...
fuzz:
go test -fuzz=FuzzParse -fuzztime=1m ./md/.
go test -fuzz=FuzzGenerateActions -fuzztime=1m .
integration:
env TEST_INTEGRATION=1 go test -v . -test.failfast -run \
'TestApply$$|TestRoundTripSlidesToGoogleSlidesPresentationAndBack$$|TestApplyMarkdown$$|TestAction$$' \
-timeout 30m
depsdev:
go install github.com/Songmu/gocredits/cmd/gocredits@latest
prerelease_for_tagpr: depsdev
go mod download
gocredits -w .
git add CHANGELOG.md CREDITS go.mod go.sum
.PHONY: default ci test fulltest build install lint fuzz integration depsdev prerelease_for_tagpr