]> go.fuhry.dev Git - fsnotify.git/commitdiff
only run golint on latest version of go
authorBrian Goff <cpuguy83@gmail.com>
Mon, 4 Mar 2019 19:11:11 +0000 (11:11 -0800)
committerNathan Youngman <4566+nathany@users.noreply.github.com>
Fri, 8 Mar 2019 17:04:29 +0000 (10:04 -0700)
.travis.yml

index 568aaa12c2469f1f5bf0a00e77c9b0d5c2d84294..f7ea0542e6c00f10d773c39e0f3536e7a46d015f 100644 (file)
@@ -3,24 +3,29 @@ language: go
 
 go:
   - "stable"
-  - "1.10.4"
+  - "1.11.x"
+  - "1.10.x"
   - "1.9.x"
   - "1.8.x"
 
 matrix:
+  include:
+    - go: "stable"
+      env: GOLINT=true
   allow_failures:
     - go: tip
   fast_finish: true
 
-before_script:
-  - go get -u golang.org/x/lint/golint
+
+before_install:
+  - if [ ! -z "${GOLINT}" ]; then go get -u golang.org/x/lint/golint; fi
 
 script:
   - go test --race ./...
 
 after_script:
   - test -z "$(gofmt -s -l -w . | tee /dev/stderr)"
-  - test -z "$(golint ./...     | tee /dev/stderr)"
+  - if [ ! -z  "${GOLINT}" ]; then echo running golint; golint --set_exit_status  ./...; else echo skipping golint; fi
   - go vet ./...
 
 os: