forked from kayac/ecspresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 924 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
28
29
30
31
32
33
34
35
GIT_VER ?= $(shell git describe --tags | sed -e 's/-/+/')
DATE := $(shell date +%Y-%m-%dT%H:%M:%S%z)
export GO111MODULE := on
.PHONY: test binary install clean
cmd/ecspresso/ecspresso: *.go cmd/ecspresso/*.go go.* */*.go
cd cmd/ecspresso && go build -ldflags "-s -w -X main.Version=${GIT_VER} -X main.buildDate=${DATE}" -trimpath
install: cmd/ecspresso/ecspresso
install cmd/ecspresso/ecspresso `go env GOPATH`/bin/ecspresso
test:
go test -race ./...
packages:
goreleaser build --skip-validate --rm-dist
packages-snapshot:
goreleaser build --skip-validate --rm-dist --snapshot
clean:
rm -f cmd/ecspresso/ecspresso
rm -rf dist/*
ci-test:
$(MAKE) install
cd tests/ci && PATH=${GOPATH}/bin:$PATH $(MAKE) test
orb/publish:
circleci orb validate orb.yml
circleci orb publish orb.yml $(ORB_NAMESPACE)/ecspresso@dev:latest
orb/promote:
circleci orb publish promote $(ORB_NAMESPACE)/ecspresso@dev:latest patch