1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-22 14:25:01 +01:00

.travis.yml: Use localhost for Docker's PostgreSQL ports

See: https://docs.travis-ci.com/user/docker/
This commit is contained in:
Alan Orth 2018-11-11 16:28:18 +02:00
parent d40b2f0b2e
commit 1959e8154e
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -7,7 +7,7 @@ sudo: required
services: docker
before_install:
- docker pull postgres:9.5-alpine
- docker run -d --name dspacestatistics -p 5432:5432 postgres:9.5-alpine
- docker run -d --name dspacestatistics -p 127.0.0.1:5432:5432 postgres:9.5-alpine
- docker ps -a
- docker exec dspacestatistics createuser -U postgres dspacestatistics
- docker exec dspacestatistics psql -U postgres -c "ALTER USER dspacestatistics WITH PASSWORD 'dspacestatistics'"