Daniel Black <dan...@linux.ibm.com> writes:

> An empty environment variable resulted in localhost, meaning
> posgresql connecting to domain sockets wasn't available.

It took me a long time to understand how this works (e.g. that PGPORT is
still required to be set for psql to find the correct domain socket.)
But I think I'm now a bit clearer.

> Signed-off-by: Daniel Black <dan...@linux.ibm.com>
> ---
>  .travis.yml               | 3 +++
>  patchwork/settings/dev.py | 1 +
>  2 files changed, 4 insertions(+)
>
> diff --git a/.travis.yml b/.travis.yml
> index 58e0b08..0c6e79d 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -22,6 +22,7 @@ env:
>      - PW_TEST_DB_TYPE=mysql PW_TEST_DB_USER=root
>    global:
>      - PW_TEST_DB_PASS=""
> +    - PW_TEST_DB_HOST="localhost"

I tried setting this to "" globally and it seemed to work; is there any
reason to treat postgres 10 and 11 specially?

More fundamentally, is there any reason we particuarly want to do things
this way on Travis?

Regards,
Daniel

_______________________________________________
Patchwork mailing list
Patchwork@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to