Resolve port collision with Travis CI automatically started psql instance
@@ -7,6 +7,8 @@ install:
- pip3 install -r ingestion_server/requirements.txt
- pip3 install -r cccatalog-api/requirements.txt
before_script:
+ - sudo service postgresql stop
+ - while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done
- docker-compose up -d
- bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8000/healthcheck)" != "200" ]]; do sleep 5; done'
script:
