-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
41 lines (39 loc) · 837 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
SHELL=/bin/bash
packages = ./core ./prompts
run:
@go run ./examples
play:
@go run ./playground
test:
@until [ $$RET -eq 0 ]; do \
go test $(packages) -cover ; \
RET=$$? ; \
done
profile:
@until [ $$RET -eq 0 ]; do \
go test $(packages) -cover -coverprofile cover.out ; \
RET=$$? ; \
done
go tool cover -html cover.out -o cover.html
rm cover.out
profile-core:
@until [ $$RET -eq 0 ]; do \
go test ./core -cover -coverprofile cover.out ; \
RET=$$? ; \
done
go tool cover -html cover.out -o cover.html
rm cover.out
profile-prompts:
@until [ $$RET -eq 0 ]; do \
go test ./prompts -cover -coverprofile cover.out ; \
RET=$$? ; \
done
go tool cover -html cover.out -o cover.html
rm cover.out
snap:
@UPDATE_SNAPSHOTS=true go test ./prompts
format:
gofmt -w .
ci: test format
clog:
git-chglog -o CHANGELOG.md