-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 720 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 720 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
.PHONY: build build-run
.PHONY: test-all test-cli test-client test-utils
PKG := ./
VERSION := valpha-test.1
BUILD := $$(git log -1 --pretty=%h)
BUILD_DATE := $$(date -u +"%Y%m%d.%H%M%S")
build:
@go build -o ./bin/gomerge ./cmd/gomerge
@go build \
-ldflags "-X main.Version=${VERSION} \
-X main.Build=${BUILD} \
-X main.BuildDate=${BUILD_DATE}" \
-o ./bin/gomerge ./cmd/gomerge
run:
@./bin/gomerge list -t ${GITHUB_TOKEN} -r cian911/pr-test
build-run: build
@./bin/gomerge list -t ${GITHUB_TOKEN} -r cian911/pr-test
test-all: test-cli test-client test-utils
test-cli:
@go test -v ${PKG}/pkg/cli/list
test-client:
@go test -v ${PKG}/pkg/gitclient
test-utils:
@go test -v ${PKG}/pkg/utils