logrus/travis/lint.sh

8 lines
223 B
Bash
Raw Normal View History

2019-10-25 12:49:48 +00:00
#!/bin/bash
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.13\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$GO111MODULE" == "on" ]]; then
$(go env GOPATH)/bin/golangci-lint run ./...
2020-11-06 12:13:37 +00:00
else
echo "linter has not been run"
2019-10-25 12:49:48 +00:00
fi