run db tests in all packages

This commit is contained in:
bergquist
2019-02-15 15:05:01 +01:00
parent 0256a4dd47
commit c68da40710
3 changed files with 36 additions and 2 deletions

17
scripts/circle-test-postgres.sh Executable file
View 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