-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 746 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 746 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
34
35
36
.PHONY: version verify test vet lint deps
# Info
NAME=scaleway
VERSION := $(shell git describe --abbrev=0 --tags 2> /dev/null || echo unknown)
REVISION := $(shell git rev-parse --short HEAD || echo unknown)
export GO15VENDOREXPERIMENT := 1
help:
# make version - show information about current version
# make deps - install dependencies
# make verify - run vet, lint and test
version:
@echo Name: $(NAME)
@echo Version: $(VERSION)
@echo Revision: $(REVISION)
verify: gover vet lint test
gover:
@go version
test:
@go test -v -covermode=count -coverprofile=coverage.out
vet:
@go vet *.go
lint:
@golint *.go
deps:
@go get golang.org/x/tools/cmd/cover
@go get github.com/mattn/goveralls
@go get -u github.com/golang/lint/golint