-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
40 lines (26 loc) · 804 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
gopath := $(shell go env GOPATH)
test: go_test \
integration_test
ci_test: install gotestsum
bash ./tests/run.sh
go_test: gotestsum
gotestsum -- -race -v ./...
install:
go mod tidy
go install
gotestsum: $(gopath)/bin/gotestsum
$(gopath)/bin/gotestsum:
go get gotest.tools/gotestsum
go mod tidy
build: install
bramble build ./...
integration_test: install
env BRAMBLE_INTEGRATION_TEST=truthy gotestsum -- -run=$(run) -v ./internal/command/
rootless_within_docker:
docker build -t bramble . && docker run --privileged -it bramble bramble build ./lib:busybox
upload_url_fetcher:
cd cmd/url_fetcher && make upload
cover:
env BRAMBLE_INTEGRATION_TEST=truthy go test -coverpkg=./... -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
rm coverage.out