File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ .env
2
+ .vscode
3
+ build
4
+ coverage *
5
+ vendor
Original file line number Diff line number Diff line change
1
+ # application name
2
+ APP = path-helper
3
+ # application version
4
+ VERSION ?= $(shell cat ./version)
5
+ # build directory
6
+ BUILD_DIR ?= build
7
+
8
+ .PHONY : default bootstrap build clean test
9
+
10
+ default : build
11
+
12
+ bootstrap :
13
+ GO111MODULE=on go mod vendor
14
+
15
+ build : clean
16
+ go build -v -o $(BUILD_DIR ) /$(APP ) .
17
+
18
+ clean :
19
+ rm -rf $(BUILD_DIR ) > /dev/null
20
+
21
+ clean-vendor :
22
+ rm -rf ./vendor > /dev/null
23
+
24
+ test :
25
+ go test -failfast -race -coverprofile=coverage.txt -covermode=atomic -cover -v .
26
+
27
+ codecov :
28
+ mkdir .ci || true
29
+ curl -s -o .ci/codecov.sh https://codecov.io/bash
30
+ bash .ci/codecov.sh -t $(CODECOV_TOKEN )
31
+
32
+ snapshot :
33
+ goreleaser --rm-dist --snapshot
34
+
35
+ release :
36
+ git tag $(VERSION )
37
+ git push origin $(VERSION )
38
+ goreleaser --rm-dist
Original file line number Diff line number Diff line change
1
+ 0.0.1
You can’t perform that action at this time.
0 commit comments