1
0

run-tests.sh 491 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # Install the lint-tool, and the shadow-tool
  3. go get -u golang.org/x/lint/golint
  4. go get -u golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
  5. # At this point failures cause aborts
  6. set -e
  7. # Run the linter
  8. echo "Launching linter .."
  9. golint -set_exit_status ./...
  10. echo "Completed linter .."
  11. # Run the shadow-checker
  12. echo "Launching shadowed-variable check .."
  13. go vet -vettool=$(which shadow) ./...
  14. echo "Completed shadowed-variable check .."
  15. # Run golang tests
  16. go test ./...