Skip to content

Commit

Permalink
Add code quality checks in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ncw committed Oct 21, 2017
1 parent 754ba2c commit 1976d5b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
language: go
sudo: false
env:
matrix:
secure: |-
Expand All @@ -7,4 +8,11 @@ env:
3x5xrMxWWeUx+jp5KauktA2T8kUrOuaebcef+8dSGE10a0E1WhA=
notifications:
email: false
script: make build && make test
install:
- make build_dep
script:
- make build
- make check
- make test
notifications:
email: false
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,16 @@ test_release:

release:
goreleaser --rm-dist

# Get the build dependencies
build_dep:
go get -u github.com/kisielk/errcheck
go get -u golang.org/x/tools/cmd/goimports
go get -u github.com/golang/lint/golint

# Do source code quality checks
check:
go vet
errcheck
goimports -d . | grep . ; test $$? -eq 1
-#golint

0 comments on commit 1976d5b

Please sign in to comment.