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.

21 lines
380 B

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