run.sh 272 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. set -euxo pipefail
  3. psql -c 'create database persistent;' -U postgres
  4. mysql -e 'create database persistent;'
  5. case "$BUILD" in
  6. stack)
  7. exec stack --no-terminal $ARGS test --bench --no-run-benchmarks
  8. ;;
  9. cabal)
  10. cabal new-test all
  11. ;;
  12. esac
  13. set +ex