2016-12-29 03:30:14 +02:00
|
|
|
language: go
|
|
|
|
go: 1.7.4
|
|
|
|
install:
|
2017-01-02 14:45:05 +02:00
|
|
|
- go get github.com/alecthomas/gometalinter
|
2016-12-29 03:30:14 +02:00
|
|
|
- go get github.com/Masterminds/glide
|
|
|
|
- glide install
|
|
|
|
script:
|
|
|
|
- go test -cover `glide nv`
|
2017-01-02 14:45:05 +02:00
|
|
|
- gometalinter --vendor --disable-all \
|
|
|
|
--enable=deadcode \
|
|
|
|
--enable=ineffassign \
|
|
|
|
--enable=gosimple \
|
|
|
|
--enable=staticcheck \
|
2017-01-02 14:47:19 +02:00
|
|
|
--enable=gofmt \
|
|
|
|
--enable=goimports \
|
2017-01-02 14:51:24 +02:00
|
|
|
--enable=dupl \
|
2017-01-02 14:45:05 +02:00
|
|
|
./...
|
2016-12-29 03:30:14 +02:00
|
|
|
after_success:
|
|
|
|
test ! -z "$TRAVIS_TAG" && go run main.go
|
|
|
|
notifications:
|
2017-01-02 14:45:05 +02:00
|
|
|
email: false
|