Skip to content

Commit e35070a

Browse files
committed
Infrastructure.
0 parents  commit e35070a

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.env
2+
.vscode
3+
build
4+
coverage*
5+
vendor

Makefile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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

version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.1

0 commit comments

Comments
 (0)