grafana/scripts/circle-test-backend.sh

14 lines
361 B
Bash
Raw Normal View History

#!/bin/bash
# shellcheck source=./scripts/helpers/exit-if-fail.sh
source "$(dirname "$0")/helpers/exit-if-fail.sh"
2017-10-23 02:06:08 -05:00
echo "building backend with install to cache pkgs"
exit_if_fail time go install ./pkg/cmd/grafana-server
echo "running go test"
2018-04-17 02:00:55 -05:00
set -e
time for d in $(go list ./pkg/...); do
exit_if_fail go test -tags=integration -covermode=atomic "$d"
2018-04-17 02:00:55 -05:00
done