-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 874 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 874 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
34
35
36
37
38
.PHONY: run build clean coveralls cover install-gotestsum test-report release
.DEFAULT_GOAL := run
# Configuration for goreleaser
PACKAGE_NAME := github.com/bjartek/aether
GOLANG_CROSS_VERSION ?= v1.25.0
run: build
cd example && ../aether && cd ..
build:
go build .
clean:
rm -f aether
coveralls:
go test --timeout 120s -coverprofile=profile.cov -covermode=atomic -v ./...
cover: coveralls
go tool cover -html=profile.cov
install-gotestsum:
go install gotest.tools/gotestsum@latest
test-report: install-gotestsum
gotestsum -f testname --no-color --hide-summary failed --junitfile test-result.xml
release:
docker run \
--rm \
--env-file .release-env \
-v /var/run/docker.sock:/var/run/docker.sock \
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
release --clean