golint now requires 1.9+
@@ -22,7 +22,7 @@ matrix:
# https://github.com/golang/lint/issues/400.
before_script:
- GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
- - DO_GOLINT=$(echo $TRAVIS_GO_VERSION | perl -wne 'chomp; if (/^[0-9]+\.[0-9]+/) { my ($major, $minor) = split /\./; print "new" if $minor >= 7 || $major > 1 } elsif (/^tip$/) { print "new" }' | grep new > /dev/null; echo $?)
+ - DO_GOLINT=$(echo $TRAVIS_GO_VERSION | perl -wne 'chomp; if (/^[0-9]+\.[0-9]+/) { my ($major, $minor) = split /\./; print "new" if $minor >= 9 || $major > 1 } elsif (/^tip$/) { print "new" }' | grep new > /dev/null; echo $?)
- if [[ "$DO_GOLINT" -eq "0" ]]; then go get github.com/golang/lint/golint; fi
script:
