Skip to content

Commit

Permalink
add vet and link make targets
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Aug 21, 2016
1 parent 154f75a commit 6f38b76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@ go:
matrix:
fast_finish: true

before_install:
- go get github.com/golang/lint/golint

script:
- go vet -x ./...
- $HOME/gopath/bin/golint ./...
- make vet
- make lint
- make
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ src/%:
test -L $@ || ln -sf '$(GOPATH)' $@
go get -v $* $*/main

vet:
@go vet .
@go vet ./data
@go vet ./main

lint:
@go get github.com/golang/lint/golint
@./bin/golint .
@./bin/golint ./data
@./bin/golint ./main

cross-setup:
for p in $(PLATFORMS); do \
echo Building for $$p"; \
Expand Down

0 comments on commit 6f38b76

Please sign in to comment.