Makefile helpers for GO.
├── .project
│ ├── yaml.sh # yaml parser
│ ├── config_var.sh # extract yaml config variable
│ └── go-project.mk # include into your Makefile
├── .VERSION # version of your project
├── config.yml # config
└── Makefile # Makefile
- Copy
.project
folder to your project's root folder - Create
.VERSION
file in the root of your project - Create
config.yml
file in the root of your project - Create
Makefile
andinclude .project/go-project.mk
make vars
- print make variablesmake upgrade-project.mk
- upgrade project.mk files"make env
- pring GO environmentmake generate
- generate GO filesmake testenv
- pring GO test environmentmake clean
- clean produced filesmake purge
- clean and purge.tools
andvendor
foldersmake gopath
- create a symbolic link to project's PROJ_GOPATH, if it's not cloned in GOPATH.make showupdates
- show updates in.tools
andvendor
foldersmake lspkg
- list GO packeges in the current projectmake bench
- GO test with benchmake fmt
- rungo fmt
on project filesmake vet
- rungo vet
on project filesmake lint
- rungo lint
on project filesmake test
- run testmake testshort
- run test with -short flagmake covtest
- run test with coverage reportmake coverage
- open coverage reportmake coveralls
- publish coverage to coveralls"
Install cov-report
in your project:
go get github.com/go-phorce/cov-report/cmd/cov-report