travis: use check-imports from gonum.org/v1/tools
MODIFY
.travis.yml
.travis.yml
@@ -24,6 +24,8 @@ matrix:
before_install:
# Required for format check.
- go get golang.org/x/tools/cmd/goimports
+ # Required for imports check.
+ - go get gonum.org/v1/tools/cmd/check-imports
# Required for coverage.
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls

MODIFY
.travis/check-imports.sh
.travis/check-imports.sh
#!/bin/bash
set -e
-go run ./internal/imports/check-imports.go
+check-imports -b "math/rand,github.com/gonum/.*"

travis: use check-imports from gonum.org/v1/tools