Skip to content

Commit

Permalink
Change travis to exclude staticcheck on Go 1.18
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kozlovic <[email protected]>
  • Loading branch information
kozlovic committed Mar 31, 2023
1 parent e48a0c7 commit ee84146
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ env:
go_import_path: github.com/nats-io/nats-streaming-server
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
go install honnef.co/go/tools/cmd/staticcheck@latest;
go install github.com/client9/misspell/cmd/misspell@latest;
if [[ "$TRAVIS_GO_VERSION" =~ 1.19 ]]; then
go install honnef.co/go/tools/cmd/staticcheck@latest;
go install github.com/client9/misspell/cmd/misspell@latest;
fi;
fi
services:
- mysql
Expand All @@ -27,8 +29,10 @@ before_script:
go install;
$(exit $(go fmt $GO_LIST | wc -l));
go vet $GO_LIST;
find . -type f -name "*.go" | grep -v "/spb/" | xargs misspell -error -locale US;
staticcheck $GO_LIST;
if [[ "$TRAVIS_GO_VERSION" =~ 1.19 ]]; then
find . -type f -name "*.go" | grep -v "/spb/" | xargs misspell -error -locale US;
staticcheck $GO_LIST;
fi;
fi
script:
- set -e
Expand Down

0 comments on commit ee84146

Please sign in to comment.