about summary refs log tree commit diff
path: root/jest/dev-infra/with-test-redis-and-db.sh
blob: c2b0c75ff143b99a4c943eecc0c963e84a4b9c2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env sh

# Example usage:
# ./with-test-redis-and-db.sh psql postgresql://pg:password@localhost:5433/postgres -c 'select 1;'
# ./with-test-redis-and-db.sh redis-cli -h localhost -p 6380 ping

dir=$(dirname $0)
. ${dir}/_common.sh

SERVICES="db_test redis_test" main "$@"