-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
27 lines (24 loc) · 860 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
.PHONY: build install release changelog test-release-process test-rpm-install
./dist/git-cc: ./main.go ./go.mod ./go.sum ./pkg/**/*.go ./internal/**/*.go cmd/*.go
go build -o ./dist/git-cc
build: ./dist/git-cc
unit-test:
go test ./...
install:
go install
test-release-process:
goreleaser --rm-dist --snapshot --skip-publish
test-rpm-install: test-release-process
docker run -v ${PWD}/dist:/dist centos bash -c 'rpm -i /dist/git-cc*_linux_amd64.rpm && git-cc --version'
#^ requires that GITHUB_TOKEN be set, and the token have the 'repo' scope
./assets/demo.mp4: ./assets/demo.tape
faketime '2000-01-01 00:00:00' vhs ./assets/demo.tape
changelog:
pnpx standard-version
release:
goreleaser release --rm-dist
clean:
go clean
rm -rf dist
# so to cut a release, run `make changelog`, inspect the changes, and then run
# `git push --tags --follow-tags`