logrus/travis/lint.sh

8 lines
223 B
Bash
Raw Normal View History

2019-10-25 15:49:48 +03:00
#!/bin/bash
2020-11-06 15:26:15 +03:00
if [[ "$TRAVIS_GO_VERSION" =~ ^1\.15\. ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$GO111MODULE" == "on" ]]; then
2019-10-25 15:49:48 +03:00
$(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