circle-test-backend.sh 361 B

12345678910111213
  1. #!/bin/bash
  2. # shellcheck source=./scripts/helpers/exit-if-fail.sh
  3. source "$(dirname "$0")/helpers/exit-if-fail.sh"
  4. echo "building backend with install to cache pkgs"
  5. exit_if_fail time go install ./pkg/cmd/grafana-server
  6. echo "running go test"
  7. set -e
  8. time for d in $(go list ./pkg/...); do
  9. exit_if_fail go test -tags=integration -covermode=atomic "$d"
  10. done