mirror of
https://github.com/grafana/grafana.git
synced 2025-07-25 15:52:13 +08:00
run db tests in all packages
This commit is contained in:
17
scripts/circle-test-postgres.sh
Executable file
17
scripts/circle-test-postgres.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
function exit_if_fail {
|
||||
command=$@
|
||||
echo "Executing '$command'"
|
||||
eval $command
|
||||
rc=$?
|
||||
if [ $rc -ne 0 ]; then
|
||||
echo "'$command' returned $rc."
|
||||
exit $rc
|
||||
fi
|
||||
}
|
||||
|
||||
export GRAFANA_TEST_DB=postgres
|
||||
|
||||
time for d in $(go list ./pkg/...); do
|
||||
exit_if_fail go test -tags=integration $d
|
||||
done
|
Reference in New Issue
Block a user