-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakeGoTravis.mk
More file actions
28 lines (22 loc) · 973 Bytes
/
MakeGoTravis.mk
File metadata and controls
28 lines (22 loc) · 973 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
# this file must use as base Makefile
travisInstall:
GOPROXY=$(ENV_GO_PROXY) GO111MODULE=on go get -t -v ./...
travisTest:
GO111MODULE=on go test -v ./... -timeout 1m
travisTestFail:
GO111MODULE=on go test -v ./... -timeout 1m | grep FAIL --color
travisConvey:
GO111MODULE=on go test -cover -coverprofile=coverage.txt -covermode=atomic -v ./...
travisConveyLocal:
@echo "-> use goconvey at https://github.com/smartystreets/goconvey"
@echo "-> see report at http://localhost:8080"
which goconvey
goconvey -depth=1 -launchBrowser=false -workDir=$$PWD
helpGoTravis:
@echo "Help: MakeTravis.mk"
@echo "~> make travisInstall - run project to test travis"
@echo "~> make travisTest - run project test"
@echo "~> make travisTestFail - run project test fast find FAIL"
@echo "~> make travisConvey - run project convery"
@echo "~> make travisConveyLocal - run project convery local as tools https://github.com/smartystreets/goconvey"
@echo ""