logrus/travis/lint.sh

8 lines
223 B
Bash
Raw Normal View History

2019-10-25 15:49:48 +03: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 15:13:37 +03:00
else
echo "linter has not been run"
2019-10-25 15:49:48 +03:00
fi