circle-test-postgres.sh 421 B

123456789101112131415161718
  1. #!/bin/bash
  2. function exit_if_fail {
  3. command=$@
  4. echo "Executing '$command'"
  5. eval $command
  6. rc=$?
  7. if [ $rc -ne 0 ]; then
  8. echo "'$command' returned $rc."
  9. exit $rc
  10. fi
  11. }
  12. export GRAFANA_TEST_DB=postgres
  13. exit_if_fail go test -v -run="StatsDataAccess" -tags=integration ./pkg/services/sqlstore/...
  14. #time for d in $(go list ./pkg/...); do
  15. # exit_if_fail go test -tags=integration $d
  16. #done