all: remove redundant math/rand check from travis
MODIFY
.travis.yml
.travis.yml
@@ -40,7 +40,6 @@ script:
- go build -v ./...
- go test -a $TAGS -v ./...
- if [[ $TRAVIS_SECURE_ENV_VARS = "true" ]]; then bash ./.travis/test-coverage.sh; fi
- - ${TRAVIS_BUILD_DIR}/.travis/check-rand.sh
# This is run last since it alters the tree.
- ${TRAVIS_BUILD_DIR}/.travis/check-generate.sh

DELETE
.travis/check-rand.sh
-#!/bin/bash
-
-RAND_IMPORTERS=$(find -name "*.go" -printf '%P\n' | xargs grep -l '"math/rand"')
-if [[ -n "$RAND_IMPORTERS" ]]; then
- echo -e '\e[31mImports of "math/rand" in:\n'
- for F in $RAND_IMPORTERS; do
- echo $F
- done
- echo -e '\e[0'
- exit 1
-fi

all: remove redundant math/rand check from travis