circle-test-postgres.sh 324 B

1234567891011121314151617
  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. time for d in $(go list ./pkg/...); do
  14. exit_if_fail go test -tags=integration $d
  15. done