Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 27, 2019
1 parent 5a0b2f7 commit 0afd05f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .buildkite/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
working_dir: /app
command: /app/scripts/test.sh
environment:
- TEST_POSTGRES_URI=postgres://prisma:prisma@postgres/prisma-dev
- TEST_POSTGRES_URI=postgres://prisma:prisma@postgres/
depends_on:
- postgres
postgres:
Expand Down
10 changes: 10 additions & 0 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
set -ex
env

# Wait for Postgres
for i in `seq 1 10`;
do
nc -z postgres 5432 && echo Success && exit 0
echo -n .
sleep 2
done
echo Failed waiting for Postgres && exit 1

# Run prisma2 tests
cd prisma2
yarn
yarn prepare
Expand Down

0 comments on commit 0afd05f

Please sign in to comment.