File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : go
22go :
3+ - 1.6
34 - 1.5.3
45 - 1.4.3
56 - 1.3.3
@@ -8,13 +9,13 @@ sudo: false
89
910before_install :
1011 - go get golang.org/x/tools/cmd/vet
11- - go get github.com/golang/lint/golint
12+ - go version | (grep -q 'go1.[56]' || exit 0 && go get -u github.com/golang/lint/golint )
1213 - go get github.com/vbatts/git-validation
1314
1415install : true
1516
1617script :
1718 - go vet -x ./...
18- - $HOME/gopath/bin/golint ./...
19+ - go version | (grep -q 'go1.[56]' || exit 0 && $HOME/gopath/bin/golint ./...)
1920 - $HOME/gopath/bin/git-validation -run DCO,short-subject -v -range ${TRAVIS_COMMIT_RANGE}
2021
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ test: .govet .golint .gitvalidation
5050
5151# `go get github.com/golang/lint/golint`
5252.golint :
53- golint ./...
53+ (go version | grep -q ' go1.[56] ' || exit 0 && golint ./...)
5454
5555# `go get github.com/vbatts/git-validation`
5656.gitvalidation :
You can’t perform that action at this time.
0 commit comments