Revision d36d76726f73ec1b55bda677afb690d33c4584b4 authored by Torkel Ödegaard on 01 October 2019, 18:55:17 UTC, committed by Torkel Ödegaard on 01 October 2019, 18:55:17 UTC
1 parent ac11352
Raw File
circle-test-backend.sh
#!/bin/bash

# shellcheck source=./scripts/helpers/exit-if-fail.sh
source "$(dirname "$0")/helpers/exit-if-fail.sh"

echo "building backend with install to cache pkgs"
exit_if_fail time go install ./pkg/cmd/grafana-server

echo "running go test"
set -e
time for d in $(go list ./pkg/...); do
  exit_if_fail go test -tags=integration -covermode=atomic "$d"
done
back to top