forked from rakyll/gotest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
26 lines (22 loc) · 780 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
# default makefile functionality
VENDOR=-mod=vendor
EXTRABUILD=Y
MIGRATE=
EXECUTABLE=gotest
SPECIALSTART=Y
include ../../Makefile_standard.mk
# extra build step below
extra_build:
#@echo "$(LIGHTBLUE) > Building again $(BLUE)$(PROJECTNAME) $(YELLOW)$(BRANCHENAME)$(RESET)"
#@echo "go build -o $(EXECUTABLE) ."
#@GOPATH=$(GOPATH) GOBIN=$(GOBIN) GOOS=darwin GOARCH=arm64 go build -o $(EXECUTABLE) .
@echo
@echo "$(WHITE)> Remove from bin folder$(RESET)"
@rm -f ~/go/bin/${EXECUTABLE}
@echo
@echo "$(WHITE)> Copy to standard bin folder$(RESET)"
@cp ${EXECUTABLE} ~/go/bin/${EXECUTABLE}
@goreleaser release --snapshot --clean
# special start step below (demo)
special_start:
@GOPATH=$(GOPATH) GOBIN=$(GOBIN) go run . $(VENDOR) -count=1 $(TESTTIMEOUT) ./fakeproject/...