ci: remove golangci-lint from travis checks
golangci-lint is also run as part of a GitHub-Actions.
run it there, drop it from the travis-ci dependencies.
Fixes gonum/gonum#1393.
DELETE
.travis/run.d/linux/02-check-lint.sh
-../../script.d/check-lint.sh
\ No newline at end of file

DELETE
.travis/script.d/check-lint.sh
-#!/bin/bash
-
-if [ "${TRAVIS_CPU_ARCH}" != "amd64" ]; then
- # TODO(kortschak): Remove this when git fetch --shallow-exclude is supported by git on arm64.
- # See https://travis-ci.community/t/git-fetch-shallow-exclude-does-not-work-on-arm64-architecture/7583
- echo "Skip lint check on arm64"
- exit 0
-fi
-
-if [ -n "${TAGS}" ]; then
- echo "Skip redundant lint check"
- exit 0
-fi
-
-if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
- # Only run on pull requests.
- exit 0
-fi
-
-BRANCH="+refs/pull/${TRAVIS_PULL_REQUEST}/head"
-
-set -xe
-
-# Get all the commits on the branch, and the base commit.
-git fetch --shallow-exclude=master origin ${BRANCH}
-git log --oneline
-if [ -z "${TRAVIS_PULL_REQUEST_BRANCH}" ]; then
- # Get the previous commit as well if we are not in a pull request build.
- # Otherwise we already have the base commit.
- COMMITS=$(git log --oneline | wc -l)
- git fetch --depth=$((COMMITS+1)) origin ${BRANCH}
-fi
-
-# Travis does not correctly report the branch commit range in ${TRAVIS_COMMIT_RANGE}
-# if there has been an amended commit, so just get it from the git log.
-SINCE=$(git log --oneline --reverse | head -n1 | cut -f1 -d' ')
-
-# Lint changes since we were on master.
-golangci-lint run --new-from-rev=${SINCE}

MODIFY
.travis/script.d/deps.sh
.travis/script.d/deps.sh
@@ -9,8 +9,6 @@ pushd $WORK
# Required for format check.
go get golang.org/x/tools/cmd/goimports
-# Required for linting check.
-go get github.com/golangci/golangci-lint/cmd/golangci-lint
# Required for imports check.
go get gonum.org/v1/tools/cmd/check-imports
# Required for copyright header check.

ci: remove golangci-lint from travis checks

golangci-lint is also run as part of a GitHub-Actions.
run it there, drop it from the travis-ci dependencies.

Fixes gonum/gonum#1393.