Commit 7271b571 authored by Matthew Holt's avatar Matthew Holt

Add golint and ineffassign to CI scripts

golint is not part of the tests since our Markdown dependency defines
an interface that is not lint-compliant (unfortunately).
See https://github.com/russross/blackfriday/issues/240
parent 874bcff5
......@@ -18,8 +18,14 @@ install:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash dist/gitcookie.sh; fi
- go get -t ./...
- go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
script:
- "[ -z \"$(find -name \"*.go\" | xargs gofmt -s -l)\" ] || exit 1"
- ineffassign .
- go vet ./...
- go test ./...
after_script:
- golint ./...
......@@ -14,13 +14,20 @@ install:
- 7z x go1.6.windows-amd64.zip -y -oC:\ > NUL
- go version
- go env
- go get golang.org/x/tools/cmd/vet
- go get -t ./...
- go get golang.org/x/tools/cmd/vet
- go get github.com/golang/lint/golint
- go get github.com/gordonklaus/ineffassign
- set PATH=%GOPATH%\bin;%PATH%
build: off
test_script:
- go vet ./...
- go test ./...
- ineffassign .
after_test:
- golint ./...
deploy: off
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment