mirror of
https://github.com/kopia/kopia.git
synced 2026-05-03 04:15:43 -04:00
45 lines
957 B
Makefile
45 lines
957 B
Makefile
VERSION=0.1-pre
|
|
VERSION_SUFFIX=
|
|
|
|
all: install test lint vet
|
|
|
|
install:
|
|
go install -ldflags "-X main.buildVersion=$(VERSION) -X main.buildTime=`date -u '+%s'` -X main.buildGitHash=`git describe --dirty`" github.com/kopia/kopia/cmd/kopia
|
|
|
|
build:
|
|
go build github.com/kopia/kopia/...
|
|
|
|
play:
|
|
go run cmd/playground/main.go
|
|
|
|
lint:
|
|
golint github.com/kopia/kopia/...
|
|
|
|
vet:
|
|
go vet github.com/kopia/kopia/...
|
|
|
|
deps:
|
|
go get -u -t -v github.com/kopia/kopia/...
|
|
|
|
dev-deps:
|
|
go get -u golang.org/x/tools/cmd/gorename
|
|
go get -u github.com/golang/lint/golint
|
|
go get -u golang.org/x/tools/cmd/oracle
|
|
go get -u github.com/nsf/gocode
|
|
go get -u github.com/rogpeppe/godef
|
|
go get -u github.com/lukehoban/go-outline
|
|
go get -u github.com/newhook/go-symbols
|
|
go get -u github.com/sqs/goreturns
|
|
|
|
test: install
|
|
go test -timeout 30s github.com/kopia/kopia/...
|
|
|
|
vtest:
|
|
go test -v -timeout 30s github.com/kopia/kopia/...
|
|
|
|
godoc:
|
|
godoc -http=:33333
|
|
|
|
coverage:
|
|
./coverage.sh
|