Browse Source

Only do go vet on this codebase

tags/v0.9.99
Unknwon 7 years ago
parent
commit
08c976f811
1 changed files with 6 additions and 4 deletions
  1. 6
    4
      Makefile

+ 6
- 4
Makefile View File

RELEASE_ROOT = "release" RELEASE_ROOT = "release"
RELEASE_GOGS = "release/gogs" RELEASE_GOGS = "release/gogs"
NOW = $(shell date -u '+%Y%m%d%I%M%S') NOW = $(shell date -u '+%Y%m%d%I%M%S')
GOVET = go tool vet -composites=false -methods=false -structtags=false


.PHONY: build pack release bindata clean .PHONY: build pack release bindata clean




# FIXME: find a way to ignore /vendor/ and /data/ directories. # FIXME: find a way to ignore /vendor/ and /data/ directories.
govet: govet:
go tool vet -composites=false -methods=false -structtags=false .
$(GOVET) gogs.go
$(GOVET) models modules routers


build: $(GENERATED) govet
build: $(GENERATED)
go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)' go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
cp '$(GOPATH)/bin/gogs' . cp '$(GOPATH)/bin/gogs' .


build-dev: $(GENERATED)
build-dev: $(GENERATED) govet
go install $(BUILD_FLAGS) -tags '$(TAGS)' go install $(BUILD_FLAGS) -tags '$(TAGS)'
cp '$(GOPATH)/bin/gogs' . cp '$(GOPATH)/bin/gogs' .


build-dev-race: $(GENERATED)
build-dev-race: $(GENERATED) govet
go install $(BUILD_FLAGS) -race -tags '$(TAGS)' go install $(BUILD_FLAGS) -race -tags '$(TAGS)'
cp '$(GOPATH)/bin/gogs' . cp '$(GOPATH)/bin/gogs' .



Loading…
Cancel
Save