You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
316 B

7 years ago
7 years ago
7 years ago
7 years ago
  1. #!/usr/bin/env bash
  2. set -e
  3. # run the linter
  4. # make lint
  5. # run the unit tests with coverage
  6. echo "" > coverage.txt
  7. for d in $(go list ./... | grep -v vendor); do
  8. go test -race -coverprofile=profile.out -covermode=atomic "$d"
  9. if [ -f profile.out ]; then
  10. cat profile.out >> coverage.txt
  11. rm profile.out
  12. fi
  13. done