From fbd427a73c81dcd42d6932e59085555558a4e959 Mon Sep 17 00:00:00 2001 From: apanizo Date: Thu, 9 Aug 2018 13:13:13 +0200 Subject: [PATCH] Force stop postgres --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index d94e2a64..a6c6463b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,10 @@ before_install: - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose - chmod +x docker-compose - sudo mv docker-compose /usr/local/bin + # Shut down postgres because it blocks our db container's port map to :5432 + - sudo service postgresql stop + # Wait for it to stop + - while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done - docker-compose --version - docker ps # Needed to deploy pull request and releases